private void dumpJmfBuffer ( IncidentStream is , byte [ ] frame , int offset , int length ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "dumpJmfBuffer" ) ; if ( frame != null ) { // If the length passed in is 0 we probably have rubbish in both the length // and the offset so display the entire buffer (or at least the first 4k) if ( length == 0 ) { is . writeLine ( "Request to dump offset=" + offset + " length=" + length + " implies bad data so dumping buffer from offset 0." , "" ) ; offset = 0 ; length = frame . length ; } // otherwise ensure we can't fall off the end of the buffer else if ( ( offset + length ) > frame . length ) { length = frame . length - offset ; } try { String buffer = SibTr . formatBytes ( frame , offset , length , getDiagnosticDataLimitInt ( ) ) ; is . writeLine ( "JMF data buffer" , buffer ) ; } catch ( Exception e ) { // No FFDC code needed - we are FFDCing! if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "dumpJmfBuffer failed: " + e ) ; } } else is . writeLine ( "No JMF buffer data available" , "" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "dumpJmfBuffer" ) ; }
to contain the Jetstream headers etc .