Package java.io

Examples of java.io.DataInputStream.skipBytes()


    DataInputStream in = new DataInputStream(new FileInputStream(file));
    int[][] data = new int[rowNumber][columnNumber];
    in.skipBytes(first);
    data[0][0] = in.readInt();
    for(int colIndex=1; colIndex<columnNumber; ++colIndex){
      in.skipBytes(skipBytes);
      data[0][colIndex] = in.readInt();
    }
    for(int rowIndex=1; rowIndex<rowNumber; ++rowIndex){
      for(int colIndex=0; colIndex<columnNumber; ++colIndex){
        in.skipBytes(skipBytes);
View Full Code Here


      in.skipBytes(skipBytes);
      data[0][colIndex] = in.readInt();
    }
    for(int rowIndex=1; rowIndex<rowNumber; ++rowIndex){
      for(int colIndex=0; colIndex<columnNumber; ++colIndex){
        in.skipBytes(skipBytes);
        data[rowIndex][colIndex] = in.readInt();
      }
    }
    in.close();
    return data;
View Full Code Here

  }
 
  private static int[][] readIntByColumn(String file, int first, int skipBytes,int rowNumber, int columnNumber) throws IOException{
    DataInputStream in = new DataInputStream(new FileInputStream(file));
    int[][] data = new int[rowNumber][columnNumber];
    in.skipBytes(first);
    data[0][0] = in.readInt();
    for(int rowIndex=1; rowIndex<rowNumber; ++rowIndex){
      in.skipBytes(skipBytes);
      data[rowIndex][0] = in.readInt();
    }
View Full Code Here

    DataInputStream in = new DataInputStream(new FileInputStream(file));
    int[][] data = new int[rowNumber][columnNumber];
    in.skipBytes(first);
    data[0][0] = in.readInt();
    for(int rowIndex=1; rowIndex<rowNumber; ++rowIndex){
      in.skipBytes(skipBytes);
      data[rowIndex][0] = in.readInt();
    }
    for(int colIndex=1; colIndex<columnNumber; ++colIndex){
      for(int rowIndex=0; rowIndex<rowNumber; ++rowIndex){
        in.skipBytes(skipBytes);
View Full Code Here

      in.skipBytes(skipBytes);
      data[rowIndex][0] = in.readInt();
    }
    for(int colIndex=1; colIndex<columnNumber; ++colIndex){
      for(int rowIndex=0; rowIndex<rowNumber; ++rowIndex){
        in.skipBytes(skipBytes);
        data[rowIndex][colIndex] = in.readInt();
      }
    }
    in.close();
    return data;
View Full Code Here

  }
 
  private static boolean[][] readBooleanByRow(String file, int first, int skipBytes,int rowNumber, int columnNumber) throws IOException{
    DataInputStream in = new DataInputStream(new FileInputStream(file));
    boolean[][] data = new boolean[rowNumber][columnNumber];
    in.skipBytes(first);
    data[0][0] = in.readBoolean();
    for(int colIndex=1; colIndex<columnNumber; ++colIndex){
      in.skipBytes(skipBytes);
      data[0][colIndex] = in.readBoolean();
    }
View Full Code Here

    DataInputStream in = new DataInputStream(new FileInputStream(file));
    boolean[][] data = new boolean[rowNumber][columnNumber];
    in.skipBytes(first);
    data[0][0] = in.readBoolean();
    for(int colIndex=1; colIndex<columnNumber; ++colIndex){
      in.skipBytes(skipBytes);
      data[0][colIndex] = in.readBoolean();
    }
    for(int rowIndex=1; rowIndex<rowNumber; ++rowIndex){
      for(int colIndex=0; colIndex<columnNumber; ++colIndex){
        in.skipBytes(skipBytes);
View Full Code Here

      in.skipBytes(skipBytes);
      data[0][colIndex] = in.readBoolean();
    }
    for(int rowIndex=1; rowIndex<rowNumber; ++rowIndex){
      for(int colIndex=0; colIndex<columnNumber; ++colIndex){
        in.skipBytes(skipBytes);
        data[rowIndex][colIndex] = in.readBoolean();
      }
    }
    in.close();
    return data;
View Full Code Here

  }
 
  private static boolean[][] readBooleanByColumn(String file, int first, int skipBytes,int rowNumber, int columnNumber) throws IOException{
    DataInputStream in = new DataInputStream(new FileInputStream(file));
    boolean[][] data = new boolean[rowNumber][columnNumber];
    in.skipBytes(first);
    data[0][0] = in.readBoolean();
    for(int rowIndex=1; rowIndex<rowNumber; ++rowIndex){
      in.skipBytes(skipBytes);
      data[rowIndex][0] = in.readBoolean();
    }
View Full Code Here

    DataInputStream in = new DataInputStream(new FileInputStream(file));
    boolean[][] data = new boolean[rowNumber][columnNumber];
    in.skipBytes(first);
    data[0][0] = in.readBoolean();
    for(int rowIndex=1; rowIndex<rowNumber; ++rowIndex){
      in.skipBytes(skipBytes);
      data[rowIndex][0] = in.readBoolean();
    }
    for(int colIndex=1; colIndex<columnNumber; ++colIndex){
      for(int rowIndex=0; rowIndex<rowNumber; ++rowIndex){
        in.skipBytes(skipBytes);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.