Searched defs:available (Results 1 - 25 of 42) sorted by relevance

12

/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DSSLStreamedInput.java36 public int available() throws IOException { method in class:SSLStreamedInput
37 return in.available();
H A DSSLBufferedInput.java53 public int available() throws IOException { method in class:SSLBufferedInput
H A DSSLEngineDataStream.java37 private int available; field in class:SSLEngineDataStream
47 this.available = 0;
53 available += srcs[i].remaining();
57 public int available() { method in class:SSLEngineDataStream
58 return available;
62 return available > 0;
69 int len = (length < available) ? length : available;
70 available -= len;
H A DSSLInputStream.java33 public abstract int available() throws IOException; method in class:SSLInputStream
122 } while ((available() != 0) && (i<len));
/dalvik/libcore/luni/src/main/java/java/io/
H A DFilterInputStream.java50 public int available() throws IOException { method in class:FilterInputStream
51 return in.available();
H A DInputStream.java64 * available. In particular, an implementation that always returns 0 would be correct.
69 * <p>Thirdly, the fact that a given number of bytes is "available" does not guarantee that a
82 * available.
84 * @return the estimated number of bytes available
87 public int available() throws IOException { method in class:InputStream
H A DObjectInput.java31 * @return the number of bytes available.
35 public int available() throws IOException; method in interface:ObjectInput
49 * reached. Blocks if no input is available.
H A DSequenceInputStream.java85 public int available() throws IOException { method in class:SequenceInputStream
87 return in.available();
H A DStringBufferInputStream.java64 public synchronized int available() { method in class:StringBufferInputStream
H A DByteArrayInputStream.java47 * The total number of bytes initially available in the byte array
68 * number of bytes available set to {@code offset} + {@code length}.
75 * the number of bytes available for streaming.
93 public synchronized int available() { method in class:ByteArrayInputStream
188 // Are there any bytes available?
H A DLineNumberInputStream.java58 * {@code available} returns only {@code in.available() / 2} bytes as
62 public int available() throws IOException { method in class:LineNumberInputStream
63 return in.available() / 2 + (lastChar == -1 ? 0 : 1);
H A DBufferedInputStream.java119 * input. This method returns the number of bytes available in the buffer
120 * plus those available in the source stream, but see {@link InputStream#available} for
123 * @return the estimated number of bytes available
127 public synchronized int available() throws IOException { method in class:BufferedInputStream
133 return count - pos + localIn.available();
223 * reached. If the internal buffer does not contain any available bytes then
242 /* Are there buffered bytes available? */
321 /* There are bytes available in the buffer. */
325 if (copylength == length || localIn.available()
[all...]
H A DFileInputStream.java138 public int available() throws IOException { method in class:FileInputStream
144 // available. See the long discussion in
H A DPipedInputStream.java58 * empty will block until data is available. When the buffer is full,
60 * space is available.
115 public synchronized int available() throws IOException { method in class:PipedInputStream
167 * is available, the end of the stream is detected or an exception is
236 // let blocked writers write to the newly available buffer space
373 // let blocked writers write to the newly available buffer space
439 // let blocked readers read the newly available data
H A DPushbackInputStream.java37 * {@code buf.length} indicates that no bytes are available. A value of 0
77 public int available() throws IOException { method in class:PushbackInputStream
81 return buf.length - pos + in.available();
117 * available bytes then a byte from the source input stream is returned.
132 // Is there a pushback byte available?
184 // Are there pushback bytes available?
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/net/
H A DSocketInputStream.java49 public int available() throws IOException { method in class:SocketInputStream
50 return socket.available();
/dalvik/libcore/support/src/test/java/tests/support/
H A DSupport_ASimpleInputStream.java55 public int available() throws IOException { method in class:Support_ASimpleInputStream
/dalvik/libcore/crypto/src/main/java/javax/crypto/
H A DCipherInputStream.java166 * {@link CipherInputStream#available() available}. The smaller of n and the
178 int available = available();
179 if (available < n) {
180 n = available;
189 public int available() throws IOException { method in class:CipherInputStream
/dalvik/libcore/archive/src/main/java/java/util/zip/
H A DInflaterInputStream.java275 * {@link InputStream#available()}, and violates the <a
279 * @return 0 if no further bytes are available. Otherwise returns 1,
281 * available.
285 public int available() throws IOException { method in class:InflaterInputStream
H A DZipInputStream.java389 public int available() throws IOException { method in class:ZipInputStream
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/ftp/
H A DFtpURLInputStream.java79 public int available() throws IOException { method in class:FtpURLInputStream
80 return is.available();
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DPipedOutputStreamTest.java48 public int available() { method in class:PipedOutputStreamTest.PReader
50 return reader.available();
213 assertTrue("Test 1: Bytes have been written before flush.", reader.available() != 0);
/dalvik/libcore/sql/src/main/java/SQLite/
H A DBlob.java34 public int available() throws IOException { method in class:BlobR
/dalvik/libcore-disabled/sound/src/main/java/javax/sound/sampled/
H A DAudioInputStream.java140 public int available() throws IOException { method in class:AudioInputStream
142 return Math.min(stream.available(),
145 return line.available();
/dalvik/libcore/archive/src/main/java/java/util/jar/
H A DJarFile.java133 public int available() throws IOException { method in class:JarFile.JarFileInputStream
137 return super.available();

Completed in 255 milliseconds

12