@ Override public void write ( byte [ ] buffer , int offset , int length ) throws IOException { synchronized ( _logLock ) { if ( _isRollingOver && getTempStreamMax ( ) < _tempStreamSize ) { try { _logLock . wait ( ) ; } catch ( Exception e ) { } } if ( ! _isRollingOver ) { if ( _os == null ) openLog ( ) ; if ( _os != null ) _os . write ( buffer , offset , length ) ; } else { // XXX: throw new UnsupportedOperationException ( getClass ( ) . getName ( ) ) ; /* if (_tempStream == null) { _tempStream = createTempStream(); _tempStreamSize = 0; } _tempStreamSize += length; _tempStream.write(buffer, offset, length); */ } } }
Writes to the underlying log .