/** * Reads the next record from input stream and prepare this decoder to decode values from it * * @param stream */ public void readNextBlock(final int blockSizeInBytes, final InputStream stream) { if ( blockSizeInBytes < 0 ) throw new TribbleException("Invalid block size " + blockSizeInBytes); setRecordBytes(readRecordBytes(blockSizeInBytes, stream)); }
/** * Reads the next record from input stream and prepare this decoder to decode values from it * * @param stream * @return */ public void readNextBlock(final int blockSizeInBytes, final InputStream stream) { if ( blockSizeInBytes < 0 ) throw new TribbleException("Invalid block size " + blockSizeInBytes); setRecordBytes(readRecordBytes(blockSizeInBytes, stream)); }
/** * Reads the next record from input stream and prepare this decoder to decode values from it * * @param stream */ public void readNextBlock(final int blockSizeInBytes, final InputStream stream) { if ( blockSizeInBytes < 0 ) throw new TribbleException("Invalid block size " + blockSizeInBytes); setRecordBytes(readRecordBytes(blockSizeInBytes, stream)); }