protected ObjectManagerByteArrayOutputStream [ ] getBuffers ( ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "getBuffers" ) ; ObjectManagerByteArrayOutputStream [ ] buffers = new ObjectManagerByteArrayOutputStream [ 1 ] ; // Create the buffer to contain the header for this log record. buffers [ 0 ] = new ObjectManagerByteArrayOutputStream ( overhead ) ; buffers [ 0 ] . writeInt ( LogRecord . TYPE_PADDING ) ; buffers [ 0 ] . writeInt ( totalSize - overhead ) ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , "getBuffers" , new Object [ ] { buffers } ) ; return buffers ; }
Gives back the serialized LogRecord as an arrays of bytes .