question: public static Sample loadBinary ( DataInputStream dis ) throws IOException { int frameDataSize = dis . readInt ( ) ; short [ ] frameData = new short [ frameDataSize ] ; for ( int i = 0 ; i < frameData . length ; i ++ ) { frameData [ i ] = dis . readShort ( ) ; } int residualDataSize = dis . readInt ( ) ; byte [ ] residualData = new byte [ residualDataSize ] ; for ( int i = 0 ; i < residualData . length ; i ++ ) { residualData [ i ] = dis . readByte ( ) ; } return new Sample ( frameData , residualData , residualDataSize ) ; }
target:  Loads the samples from the given channel