_header.getBigBlockSize().getBigBlockSize() ); _header.writeData(baos); getBlockAt(-1).put(baos.toByteArray());
/** * Write the block's data to an OutputStream * * @param stream the OutputStream to which the stored data should * be written * * @exception IOException on problems writing to the specified * stream */ public void writeBlocks(final OutputStream stream) throws IOException { _header_block.writeData(stream); }
/** * Write the block's data to an OutputStream * * @param stream the OutputStream to which the stored data should * be written * * @exception IOException on problems writing to the specified * stream */ public void writeBlocks(final OutputStream stream) throws IOException { _header_block.writeData(stream); }
/** * Write the block's data to an existing block * * @param block the ByteBuffer of the block to which the * stored data should be written * * @exception IOException on problems writing to the block */ public void writeBlock(ByteBuffer block) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream( _header_block.getBigBlockSize().getBigBlockSize() ); _header_block.writeData(baos); block.put(baos.toByteArray()); }
/** * Write the block's data to an existing block * * @param block the ByteBuffer of the block to which the * stored data should be written * * @exception IOException on problems writing to the block */ public void writeBlock(ByteBuffer block) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream( _header_block.getBigBlockSize().getBigBlockSize() ); _header_block.writeData(baos); block.put(baos.toByteArray()); }
_header.getBigBlockSize().getBigBlockSize() ); _header.writeData(baos); getBlockAt(-1).put(baos.toByteArray());