class JacksonCborFactory implements CborFactory {

    @Override
    public JsonValue readFrom(final byte[] bytes) {
        final ByteBuffer byteBuffer = ByteBuffer.wrap(bytes);
        try {
            final CBORParser parser = JACKSON_CBOR_FACTORY.createParser(bytes);
            return parseValue(parser, byteBuffer);
        } catch (final IOException | IllegalArgumentException | ArrayIndexOutOfBoundsException e) {
            throw createJsonParseException(byteBuffer, e);
        }
    }

    public  JacksonCborFactory();

}