Package _io

Examples of _io.ReadBinaryScoreStream


      ScoreMaps sm4 = new ScoreMaps((byte) 4, holeCards);
      ScoreMaps sm3 = new ScoreMaps((byte) 3, holeCards);
      ScoreMaps sm0 = new ScoreMaps((byte) 0, holeCards);
     
      ReadBinaryScoreStream in =
        new ReadBinaryScoreStream(inFile, 5, Helper.getBufferSize(MAX_SIMULT_FILES_OPEN));

      HandRecordScore hr ;
     
      while ((hr = (HandRecordScore)in.readRecord()) != null) {         
        sm4.addScore(hr, hr.score);
        sm3.addScore(hr, hr.score);
        sm0.addScore(hr, hr.score);
      }

      in.close();

      Helper.prepFilePath(outFile4);
      Helper.prepFilePath(outFile3);
      Helper.prepFilePath(outFile0);
     
View Full Code Here


           
            // load up input file
            ReadBinaryData in;
            String path = inputDir + new Integer(i).toString() + "_" + new Integer(j).toString();
            if(numBoardCards == 5) {
              in = new ReadBinaryScoreStream(path, numBoardCards, Helper.getBufferSize(MAX_SIMULT_FILES_OPEN));
            } else if(numBoardCards == 0 || numBoardCards == 3 || numBoardCards == 4) {
              in = new ReadBinaryScoreGroupStream(path, numBoardCards, Helper.getBufferSize(MAX_SIMULT_FILES_OPEN));
            } else {
              throw new RuntimeException();
            }
View Full Code Here

TOP

Related Classes of _io.ReadBinaryScoreStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.