new DataInputStream(new BufferedInputStream(new FileInputStream("temp.tmp"))) : DataInputStream « java.io « Java by API






new DataInputStream(new BufferedInputStream(new FileInputStream("temp.tmp")))

  
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    DataInputStream dis = new DataInputStream(new BufferedInputStream(new FileInputStream(
        "temp.tmp")));
    for (int i = 0; i < 10; i++)
      dis.readInt();
    dis.close();

  }
}

   
    
  








Related examples in the same category

1.new DataInputStream(FileInputStream fileInputStream)
2.DataInputStream: readBoolean()
3.DataInputStream: readByte()
4.DataInputStream: readChar()
5.DataInputStream: readDouble()
6.DataInputStream: readFloat()
7.DataInputStream: readInt()
8.DataInputStream: readLong()
9.DataInputStream: readShort()
10.DataInputStream: readUnsignedShort()
11.DataInputStream: readUTF()