question: public void dump ( Writer writer ) { DecimalFormat numberFormat = new DecimalFormat ( ) ; numberFormat . setMaximumFractionDigits ( 6 ) ; numberFormat . setMinimumFractionDigits ( 6 ) ; PrintWriter pw = new PrintWriter ( new BufferedWriter ( writer ) ) ; if ( getNumberOfFrames ( ) == 0 ) { pw . println ( "# ========== LPCResult ==========" ) ; pw . println ( "# Num_of_Frames: " + getNumberOfFrames ( ) ) ; pw . flush ( ) ; return ; } pw . println ( "========== LPCResult ==========" ) ; pw . println ( "Num_of_Frames: " + getNumberOfFrames ( ) ) ; pw . println ( "Num_of_Channels: " + getNumberOfChannels ( ) ) ; pw . println ( "Num_of_Samples: " + getNumberOfSamples ( ) ) ; pw . println ( "Sample_Rate: " + sampleRate ) ; pw . println ( "LPC_Minimum: " + numberFormat . format ( lpcMinimum ) ) ; pw . println ( "LPC_Range: " + numberFormat . format ( lpcRange ) ) ; pw . println ( "Residual_Fold: " + residualFold ) ; pw . println ( "Post_Emphasis: " + numberFormat . format ( POST_EMPHASIS ) ) ; int i ; pw . print ( "Times:\n" ) ; for ( i = 0 ; i < getNumberOfFrames ( ) ; i ++ ) { pw . print ( times [ i ] + " " ) ; } pw . print ( "\nFrames: " ) ; for ( i = 0 ; i < getNumberOfFrames ( ) ; i ++ ) { short [ ] frame = getFrame ( i ) ; for ( int j = 0 ; j < frame . length ; j ++ ) { pw . print ( ( ( ( int ) frame [ j ] ) + 32768 ) + "\n" ) ; } } pw . print ( "\nSizes: " ) ; for ( i = 0 ; i < getNumberOfFrames ( ) ; i ++ ) { pw . print ( sizes [ i ] + " " ) ; } pw . print ( "\nResiduals: " ) ; for ( i = 0 ; i < getNumberOfSamples ( ) ; i ++ ) { if ( residuals [ i ] == 0 ) { pw . print ( 255 ) ; } else { pw . print ( ( ( ( int ) residuals [ i ] ) + 128 ) ) ; } pw . print ( "\n" ) ; pw . flush ( ) ; } pw . flush ( ) ; }
target:  Dumps this LPCResult to the given stream.