Method available()
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 bytesAvailable = fin.available();
2 readFromFile = new byte[SourceFile.available()];
3 assertTrue( "Not all bytes were read", fin.available() == 0 );
4 int bytesAvailable = fin.available();
5 assertTrue( "Not all bytes were read", fin.available() == 0 );
6 byte[] b = new byte[fis.available()];
7 while (available() > 1) skip(available() - 1);
8 byte[] content = new byte[fis.available()];
9 byte readFromFile[] = new byte[SourceFile.available()];
10 byte[] b = new byte[fis.available()];
11 int size = fis.available();
12 int len = in.available();
13 classData = new byte[fi.available()];
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.