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

12

/libcore/crypto/src/main/java/org/conscrypt/
H A DSSLStreamedInput.java36 public int available() throws IOException { method in class:SSLStreamedInput
37 return in.available();
H A DSSLBufferedInput.java51 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
110 } while ((available() != 0) && (i<len));
H A DSSLSocketInputStream.java75 * Returns the number of bytes available for reading without blocking.
76 * @return the number of available bytes.
80 public int available() throws IOException { method in class:SSLSocketInputStream
96 * available.
126 } while ((available() != 0) && (i<len));
/libcore/luni/src/main/java/java/io/
H A DFilterInputStream.java52 public int available() throws IOException { method in class:FilterInputStream
53 return in.available();
H A DInputStream.java78 * available. In particular, an implementation that always returns 0 would be correct.
83 * <p>Thirdly, the fact that a given number of bytes is "available" does not guarantee that a
96 * available.
98 * @return the estimated number of bytes available
101 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.java82 public int available() throws IOException { method in class:SequenceInputStream
84 return in.available();
H A DStringBufferInputStream.java64 public synchronized int available() { method in class:StringBufferInputStream
H A DByteArrayInputStream.java45 * The total number of bytes initially available in the byte array
66 * number of bytes available set to {@code offset} + {@code length}.
73 * the number of bytes available for streaming.
88 public synchronized int available() { method in class:ByteArrayInputStream
147 // Are there any bytes available?
H A DFileInputStream.java109 public int available() throws IOException { method in class:FileInputStream
110 return IoBridge.available(fd);
H A DLineNumberInputStream.java62 * {@code available} returns only {@code in.available() / 2} bytes as
66 public int available() throws IOException { method in class:LineNumberInputStream
67 return in.available() / 2 + (lastChar == -1 ? 0 : 1);
H A DBufferedInputStream.java101 * input. This method returns the number of bytes available in the buffer
102 * plus those available in the source stream, but see {@link InputStream#available} for
105 * @return the estimated number of bytes available
109 public synchronized int available() throws IOException { method in class:BufferedInputStream
114 return count - pos + localIn.available();
208 * reached. If the internal buffer does not contain any available bytes then
226 /* Are there buffered bytes available? */
263 /* There are bytes available in the buffer. */
267 if (copylength == byteCount || localIn.available()
[all...]
H A DPipedInputStream.java52 * empty will block until data is available. When the buffer is full,
54 * space is available.
141 public synchronized int available() throws IOException { method in class:PipedInputStream
195 * is available, the end of the stream is detected or an exception is
252 // let blocked writers write to the newly available buffer space
354 // let blocked writers write to the newly available buffer space
410 // 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
85 public int available() throws IOException { method in class:PushbackInputStream
89 return buf.length - pos + in.available();
125 * available bytes then a byte from the source input stream is returned.
140 // Is there a pushback byte available?
172 // Are there pushback bytes available?
/libcore/support/src/test/java/tests/support/
H A DSupport_ASimpleInputStream.java55 public int available() throws IOException { method in class:Support_ASimpleInputStream
/libcore/luni/src/main/java/libcore/net/url/
H A DFtpURLInputStream.java72 public int available() throws IOException { method in class:FtpURLInputStream
73 return is.available();
/libcore/luni/src/main/java/java/util/zip/
H A DDeflaterInputStream.java39 private boolean available = true; field in class:DeflaterInputStream
121 if (!available) {
145 available = false;
167 * {@link InputStream#available()}, and violates the <a
171 * @return 0 if no further bytes are available. Otherwise returns 1,
173 * available.
177 public int available() throws IOException { method in class:DeflaterInputStream
179 return available ? 1 : 0;
H A DInflaterInputStream.java222 * {@link InputStream#available()}, and violates the <a
226 * @return 0 if no further bytes are available. Otherwise returns 1,
228 * available.
232 public int available() throws IOException { method in class:InflaterInputStream
/libcore/luni/src/main/java/javax/crypto/
H A DCipherInputStream.java160 public int available() throws IOException { method in class:CipherInputStream
/libcore/luni/src/test/java/libcore/java/io/
H A DOldPipedOutputStreamTest.java42 public int available() { method in class:OldPipedOutputStreamTest.PReader
44 return reader.available();
162 assertTrue("Test 1: Bytes have been written before flush.", reader.available() != 0);
/libcore/luni/src/main/java/java/net/
H A DSocketImpl.java68 * Returns the available number of bytes which are readable from this socket
75 protected abstract int available() throws IOException; method in class:SocketImpl
/libcore/luni/src/main/java/java/nio/channels/
H A DChannels.java225 @Override public int available() throws IOException { method in class:Channels.ChannelInputStream
231 return super.available();
/libcore/luni/src/main/java/java/util/concurrent/
H A DDelayQueue.java66 * Condition signalled when a newer element becomes available
70 private final Condition available = lock.newCondition(); field in class:DelayQueue
114 available.signal();
170 * until an element with an expired delay is available on this queue.
182 available.await();
189 available.await();
194 available.awaitNanos(delay);
204 available.signal();
211 * until an element with an expired delay is available on this queue,
216 * an expired delay becomes available
[all...]

Completed in 467 milliseconds

12