/libcore/luni/src/main/java/java/io/ |
H A D | FilterInputStream.java | 52 public int available() throws IOException { method in class:FilterInputStream 53 return in.available();
|
H A D | InputStream.java | 78 * 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 D | ObjectInput.java | 31 * @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 D | SequenceInputStream.java | 82 public int available() throws IOException { method in class:SequenceInputStream 84 return in.available();
|
H A D | StringBufferInputStream.java | 64 public synchronized int available() { method in class:StringBufferInputStream
|
H A D | ByteArrayInputStream.java | 45 * 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 D | FileInputStream.java | 107 public int available() throws IOException { method in class:FileInputStream 108 return IoBridge.available(fd);
|
H A D | LineNumberInputStream.java | 62 * {@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 D | BufferedInputStream.java | 108 * input. This method returns the number of bytes available in the buffer 109 * plus those available in the source stream, but see {@link InputStream#available} for 112 * @return the estimated number of bytes available 116 public synchronized int available() throws IOException { method in class:BufferedInputStream 121 return count - pos + localIn.available(); 215 * reached. If the internal buffer does not contain any available bytes then 233 /* Are there buffered bytes available? */ 270 /* There are bytes available in the buffer. */ 274 if (copylength == byteCount || localIn.available() [all...] |
H A D | PipedInputStream.java | 52 * 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 415 // let blocked readers read the newly available data
|
H A D | PushbackInputStream.java | 37 * {@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 D | Support_ASimpleInputStream.java | 55 public int available() throws IOException { method in class:Support_ASimpleInputStream
|
/libcore/luni/src/main/java/libcore/net/url/ |
H A D | FtpURLInputStream.java | 72 public int available() throws IOException { method in class:FtpURLInputStream 73 return is.available();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | PipedOutputStreamTest.java | 44 public int available() { method in class:PipedOutputStreamTest.PReader 46 return reader.available(); 143 assertTrue("Bytes written before flush", reader.available() != 0);
|
H A D | InputStreamReaderTest.java | 62 public int available() { method in class:InputStreamReaderTest.LimitedByteArrayInputStream
|
/libcore/luni/src/main/java/java/util/zip/ |
H A D | DeflaterInputStream.java | 39 private boolean available = true; field in class:DeflaterInputStream 121 if (!available) { 144 available = false; 148 available = false; 170 * {@link InputStream#available()}, and violates the <a 174 * @return 0 if no further bytes are available. Otherwise returns 1, 176 * available. 180 public int available() throws IOException { method in class:DeflaterInputStream 182 return available ? 1 : 0;
|
H A D | InflaterInputStream.java | 222 * {@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
|
H A D | ZipInputStream.java | 349 public int available() throws IOException { method in class:ZipInputStream
|
/libcore/luni/src/main/java/javax/crypto/ |
H A D | CipherInputStream.java | 83 * cipher. Returns {@code true} if output from the cipher is available to 158 int available = outputLength - outputIndex; 159 if (available < len) { 160 len = available; 175 public int available() throws IOException { method in class:CipherInputStream
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldPipedOutputStreamTest.java | 42 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/nio/channels/ |
H A D | Channels.java | 225 @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 D | DelayQueue.java | 66 * 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...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldSocketImplFactoryTest.java | 124 protected int available() throws IOException { method in class:OldSocketImplFactoryTest.MockSocketImpl
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | SocketImplTest.java | 88 protected int available() throws IOException { method in class:SocketImplTest.MockSocketImpl
|
/libcore/luni/src/main/java/java/net/ |
H A D | SocketImpl.java | 68 * Returns the available number of bytes which are readable from this socket 75 protected abstract int available() throws IOException; method in class:SocketImpl
|