read()
int read()
read(byte b[])
read(byte[],int off,int len)
skip(long n)
int available()
mark()
reset()
boolean markSupported()
close()Types of InputStream
| class | description | constructor parameter |
ByteArrayInputStream |
Allows a buffer in menory to be used as an InputStream |
byte[] |
StringBufferInputStream |
Converts a string into an InputStream |
String |
FileInputStream |
For reading information from a file | String represents its name |
PipedInputStream |
||
SequenceInputStream |
Converts two or more InputStream into a single |