Searched refs:available (Results 26 - 50 of 151) sorted by relevance

1234567

/libcore/support/src/test/java/libcore/tlswire/handshake/
H A DServerNameHelloExtension.java41 while (serverNameListIn.available() > 0) {
/libcore/support/src/test/java/tests/support/
H A DSupport_ASimpleInputStream.java55 public int available() throws IOException { method in class:Support_ASimpleInputStream
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DBufferedInputStreamTest.java124 // still be available.
162 * java.io.BufferedInputStream#available()
165 assertTrue("Returned incorrect number of available bytes", is
166 .available() == INPUT.length());
168 // Test that a closed stream throws an IOE for available()
172 int available = bis.available();
174 assertTrue(available != 0);
177 bis.available();
411 if (toRead > available()) {
[all...]
H A DFileDescriptorTest.java47 assertEquals(length, fis.available());
52 assertEquals(length, fis.available());
H A DPipedOutputStreamTest.java44 public int available() { method in class:PipedOutputStreamTest.PReader
46 return reader.available();
143 assertTrue("Bytes written before flush", reader.available() != 0);
H A DSequenceInputStreamTest.java101 * java.io.SequenceInputStream#available()
104 // Test for method int java.io.SequenceInputStream.available()
107 assertTrue("Returned incorrect number of bytes: " + si.available(),
108 si.available() == s1.length());
110 fail("IOException during available test : " + e.getMessage());
/libcore/ojluni/src/main/java/sun/net/www/
H A DMeteredStream.java174 public synchronized int available() throws IOException { method in class:MeteredStream
175 return closed ? 0: in.available();
/libcore/ojluni/src/test/java/net/Socket/
H A DShutdownInput.java27 * @summary Socket.getInputStream().available() not clear for
78 if (in.available() != 0) {
80 System.out.println(mesg + ":" + s2 + " in.available() should be 0, " +
81 "but returns "+ in.available());
/libcore/luni/src/test/java/libcore/java/io/
H A DOldPushbackInputStreamTest.java92 assertEquals("Wrong number!", 30, tobj.available());
95 tobj.available();
172 assertEquals("Wrong number!", 30 - 6, tobj.available());
209 assertEquals("Wrong number!", 30 + 10, tobj.available());
249 assertEquals("Wrong number!", 30 + 10, tobj.available());
313 assertEquals("Wrong number!", 30, tobj.available());
H A DOldByteArrayInputStreamTest.java37 bis.available() == fileString.length());
51 100, bis.available());
79 // Test for method int java.io.ByteArrayInputStream.available()
81 assertTrue("Returned incorrect number of available bytes", is
82 .available() == fileString.length());
84 fail("Exception during available test");
H A DOldFilterOutputStreamTest.java105 bis.available() == testLength);
128 bis.available() == testLength - 10);
178 bis.available() == 1);
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);
H A DOldSequenceInputStreamTest.java34 assertEquals("Returned incorrect number of bytes!", s1.length(), si.available());
37 si.available() == s1.length());
40 si.available();
H A DOldLineNumberInputStreamTest.java36 assertEquals("Test 1: Returned incorrect number of available bytes;",
37 text.length() / 2, lnis.available());
41 lnis.available();
/libcore/ojluni/src/main/java/sun/security/util/
H A DDerValue.java266 int readLen = inbuf.available();
384 int readLen = in.available();
400 if (fullyBuffered && in.available() != length)
502 while (in.available() != 0) {
518 return buffer.getInteger(data.available());
529 return buffer.getBigInteger(data.available(), false);
542 return buffer.getBigInteger(data.available(), true);
555 return buffer.getInteger(data.available());
749 return buffer.getUTCTime(data.available());
762 return buffer.getGeneralizedTime(data.available());
[all...]
H A DDerInputStream.java183 * Note: UniversalString not supported till encoder is available.
431 int readLen = buffer.available();
456 if (buffer.available() == len)
471 } while (newstr.available() > 0);
473 if (newstr.available() != 0)
682 * Returns the number of bytes available for reading.
686 public int available() { return buffer.available(); } method in class:DerInputStream
/libcore/ojluni/src/main/java/javax/crypto/
H A DEncryptedPrivateKeyInfo.java91 if (val.data.available() != 0) {
92 throw new IOException("overrun, bytes = " + val.data.available());
96 if (seq[0].data.available() != 0) {
101 if (seq[1].data.available() != 0) {
198 * in the constructor when such mapping is available.
421 if (algid.available() != 0) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DChannelsTest.java106 assertEquals(file.available(), compareNumber);
160 assertTrue(fins.available() > 0);
164 assertTrue(fins.available() > 0);
179 assertEquals(1, ins.available());
243 assertEquals(this.fins.available(), 1);
275 assertEquals(this.fileSize, this.fins.available());
292 assertEquals(this.fileSize, this.fins.available());
297 assertEquals(this.fins.available(), this.fileSize - this.testNum);
300 assertEquals(this.fins.available(), this.fileSize - this.testNum * 2);
302 assertEquals(this.fins.available(), thi
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DBufferedInputStream.java315 * <li> The <code>available</code> method of the underlying stream
353 // if not closed but no bytes available, return
355 if (input != null && input.available() <= 0)
402 * {@link java.io.FilterInputStream#in in}.available().
410 public synchronized int available() throws IOException { method in class:BufferedInputStream
412 int avail = getInIfOpen().available();
472 * Once the stream has been closed, further read(), available(), reset(),
H A DPushbackInputStream.java117 * <code>0</code> to <code>255</code>. If no byte is available
120 * is available, the end of the stream is detected, or an exception
147 * blocks until at least 1 byte of input is available; otherwise, no
264 * java.io.FilterInputStream#available available}.
272 * @see java.io.InputStream#available()
274 public int available() throws IOException { method in class:PushbackInputStream
277 int avail = super.available();
371 * available(), reset(), or skip() invocations will throw an IOException.
/libcore/ojluni/src/main/java/sun/security/x509/
H A DPolicyInformation.java107 if (val.data.available() != 0) {
112 if (opt.data.available() == 0)
113 throw new IOException("No data available in policyQualifiers");
114 while (opt.data.available() != 0)
/libcore/ojluni/src/main/java/java/net/
H A DSocketInputStream.java261 * @return the number of immediately available bytes
263 public int available() throws IOException { method in class:SocketInputStream
265 // have 0 bytes available.
269 return impl.available();
/libcore/ojluni/src/main/java/sun/security/pkcs/
H A DSigningCertificateInfo.java122 if (derValue.data.available() > 0) {
144 if (certId.data.available() > 0) {
/libcore/ojluni/src/main/native/
H A DFileInputStream.c91 static int available(int fd, jlong *bytes) { function
125 if (available(fd, &ret)) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DZipInputStreamTest.java230 while (zis1.available() > 0) {
235 fail("ZipInputStream.available or ZipInputStream.skip does not " +
240 assertEquals(0, zis1.available());
242 assertEquals(1, zis.available());
245 zis1.available();

Completed in 1048 milliseconds

1234567