Method read()
Return type: int
Member of:
java.io.FileInputStream
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
int ch = input.read();
2
do { c = in.read(); out.write(c); } while (c != -1);
3
do { c = in.read(); out.write(c); } while (c != -1);
4
if(fis.read()!=-1) throw new PH_IOError("File length inaccurate");
5
int i = fis.read ();
6
while ((c = fis.read()) != -1)
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.