/** * Writes the byte[] to the output stream, preceded by a 4 byte * length in network byte order (big endian). * * @param bytes The bytes. * @param outputStream The output stream. */ @Override public void serialize(byte[] bytes, OutputStream outputStream) throws IOException { this.writeHeader(outputStream, bytes.length); outputStream.write(bytes); }
/** * Writes the byte[] to the output stream, preceded by a 4 byte * length in network byte order (big endian). * * @param bytes The bytes. * @param outputStream The output stream. */ @Override public void serialize(byte[] bytes, OutputStream outputStream) throws IOException { this.writeHeader(outputStream, bytes.length); outputStream.write(bytes); }