private void internalBytes ( Object source , Class sourceClass , byte [ ] data , int start , int count ) { StringBuffer stringBuffer = new StringBuffer ( ) ; stringBuffer . append ( sourceClass . getName ( ) ) ; stringBuffer . append ( " [" ) ; if ( source != null ) { stringBuffer . append ( source ) ; } else { stringBuffer . append ( "Static" ) ; } stringBuffer . append ( "]" ) ; stringBuffer . append ( ls ) ; if ( data != null ) { if ( count > 0 ) { stringBuffer . append ( formatBytes ( data , start , count , true ) ) ; } else { stringBuffer . append ( formatBytes ( data , start , data . length , true ) ) ; } } else { stringBuffer . append ( "data is null" ) ; } Tr . debug ( traceComponent , stringBuffer . toString ( ) ) ; if ( usePrintWriterForTrace ) { if ( printWriter != null ) { printWriter . print ( new java . util . Date ( ) + " B " ) ; printWriter . println ( stringBuffer . toString ( ) ) ; printWriter . flush ( ) ; } } }
Internal implementation of byte data trace .