Method available()
Return type: int
Member of:
java.io.InputStream
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
int avail1 = is1.available();
2
return in.available()>0;
3
return inputStream.available() > 0;
4
byte[] content = new byte[is.available()];
5
int size = in.available();
6
if( this.in.available() > 0 ) {
7
int size = inputStream.available();
8
ByteArrayOutputStream os = new ByteArrayOutputStream(is.available());
9
byte[] bytes = new byte[is.available()];
10
int avail = is.available();
11
int count = is.available();
12
siz=inp.available(); // DIRTY
13
byte[] bBuff = new byte[is.available()];
14
fileSize = stream.available();
15
int len = is.available();
16
final int avail = stream.available();
17
while (m_SerialIn.available()>0) {
18
int available = stream.available();
19
while ((avail = is.available()) > 0) {
20
if ((read != -1) || ((read == -1) && (this.inputStream.available() > 0)) && !this.maxLengthMet)
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.