public byte[] getBufferCopy() { final ByteArrayOutputStream bos = new ByteArrayOutputStream(size()); try { write( bos, 0, size()); } catch( IOException e ) { throw new INTERNAL("should not happen: " + e.toString()); } return bos.toByteArray(); }
public byte[] getBufferCopy() { final ByteArrayOutputStream bos = new ByteArrayOutputStream(size()); try { write( bos, 0, size()); } catch( IOException e ) { throw new INTERNAL("should not happen: " + e.toString()); } return bos.toByteArray(); }