private void log ( Encoder encoder ) throws IOException { if ( encoder == null ) log . write ( "null" ) ; else { String className = encoder . getClass ( ) . getName ( ) ; // Some shortcuts from the ao-encoding project, classnames used here to avoid hard dependency if ( "com.aoindustries.encoding.JavaScriptInXhtmlAttributeEncoder" . equals ( className ) ) { log . write ( "javaScriptInXhtmlAttributeEncoder" ) ; } else if ( "com.aoindustries.encoding.JavaScriptInXhtmlEncoder" . equals ( className ) ) { log . write ( "javaScriptInXhtmlEncoder" ) ; } else if ( "com.aoindustries.encoding.TextInXhtmlAttributeEncoder" . equals ( className ) ) { log . write ( "textInXhtmlAttributeEncoder" ) ; } else { log . write ( className ) ; } } }
Provides detailed logging for a media encoder .