public void write ( int c ) throws IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { // 306998.15 Tr . debug ( tc , "write --> " + c ) ; } if ( ! _hasWritten && obs != null ) { _hasWritten = true ; obs . alertFirstWrite ( ) ; } if ( limit > - 1 ) { if ( total >= limit ) { throw new WriteBeyondContentLengthException ( ) ; } } if ( count == buf . length ) { response . setFlushMode ( false ) ; flushChars ( ) ; response . setFlushMode ( true ) ; } buf [ count ++ ] = ( char ) c ; total ++ ; }
Writes a char . This method will block until the char is actually written .