Input Stream

  • Use to get data into a Java Program
  • It is a abstract class
  • It was 9 methods
    • public int available() { }
      • How many bytes available in the stream to read
    • public int close()
    • public abstract int read();
      • Read data from file in form of bytes – and promoted automatically to int
    • public int read(byte[]) { }
    • public int read(byte[], int offset, int length) { }
    • public boolean markSupported()
    • public void mark(int readlimit)
    • public void reset()
    • public long skip(long n) { }

Leave a Comment