java/core/src/main/java/se/lth/cs/docria/io/MsgpackDocumentStreamReader.java
/**
     * Get next document as raw bytes
     *
     * <b>Remarks: Not safe for concurrent use.</b>
     * @return document byte array
     */
Get next document as raw bytes
Remarks: Not safe for concurrent use.
@return document byte array
Get next document as raw bytes Remarks : Not safe for concurrent use . @return document byte array
private byte[] nextRaw() {
        try {
            if(block == null) {
                block = readNextBlock();
                if (block == null)
                    return null;
            }
            int docsz = block.unpackBinaryHeader();
            byte[] docdata = block.readPayload(docsz);
            if(!block.hasNext())
                block = null;
            return docdata;
        } catch (IOException e) {
            throw new IOError(e);
        }
    }
private byte [ ] nextRaw ( ) { try { if ( block == null ) { block = readNextBlock ( ) ; if ( block == null ) return null ; } int docsz = block . unpackBinaryHeader ( ) ; byte [ ] docdata = block . readPayload ( docsz ) ; if ( ! block . hasNext ( ) ) block = null ; return docdata ; } catch ( IOException e ) { throw new IOError ( e ) ; } }
Get next document as raw bytes
 <b>Remarks: Not safe for concurrent use.</b>
 @return document byte array
Get next document as raw bytes <b > Remarks : Not safe for concurrent use . < / b > @return document byte array