Package com.fasterxml.jackson.dataformat.cbor

Examples of com.fasterxml.jackson.dataformat.cbor.CBORParser


    }

    @Override
    protected void writeObjectRaw(String fieldName, BytesReference content, OutputStream bos) throws IOException {
        writeFieldName(fieldName);
        CBORParser parser;
        if (content.hasArray()) {
            parser = CborXContent.cborFactory.createParser(content.array(), content.arrayOffset(), content.length());
        } else {
            parser = CborXContent.cborFactory.createParser(content.streamInput());
        }
        try {
            parser.nextToken();
            generator.copyCurrentStructure(parser);
        } finally {
            parser.close();
        }
    }
View Full Code Here

TOP

Related Classes of com.fasterxml.jackson.dataformat.cbor.CBORParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.