/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldPushbackInputStreamTest.java | 38 pis.unread("He".getBytes()); 45 fail("Failed to throw exception on unread when buffer full"); 65 pis.unread("Hello world".getBytes()); 66 fail("Test 3: IOException expected when the unread buffer is full."); 190 pis.unread(buf); 208 tobj.unread(buf2); 211 tobj.unread(buf2); 226 // Test for method void java.io.PushbackInputStream.unread(byte []) 232 pis.unread(buf); 234 assertTrue("Failed to unread byte [all...] |
H A D | OldPushbackReaderTest.java | 42 pbr.unread(buf); 243 * java.io.PushbackReader#unread(char[]) 252 tobj.unread(buf2); 254 tobj.unread(buf2); 269 // Test for method void java.io.PushbackReader.unread(char []) 273 pbr.unread(c); 275 assertTrue("Failed to unread chars", new String(c).equals(pbString 303 * java.io.PushbackReader#unread(char[], int, int) 312 tobj.unread(buf2, 15, 10); 314 tobj.unread(buf [all...] |
H A D | OldAndroidPushbackReaderTest.java | 36 a.unread("PUSH".toCharArray()); 44 b.unread('X');
|
H A D | OldAndroidPushbackInputStreamTest.java | 36 a.unread("push".getBytes()); 44 b.unread('X');
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | PushbackInputStreamTest.java | 67 pis.unread("He".getBytes()); 68 fail("Failed to throw exception on unread when buffer full"); 83 pis.unread("Hellos".getBytes()); 90 fail("Failed to throw exception on unread when buffer full"); 166 pis.unread(buf); 175 * java.io.PushbackInputStream#unread(byte[]) 178 // Test for method void java.io.PushbackInputStream.unread(byte []) 184 pis.unread(buf); 186 assertTrue("Failed to unread bytes", new String(buf, 0, 50, "UTF-8") 189 fail("IOException during unread tes [all...] |
H A D | PushbackReaderTest.java | 43 pbr.unread(buf); 201 * java.io.PushbackReader#unread(char[]) 204 // Test for method void java.io.PushbackReader.unread(char []) 208 pbr.unread(c); 210 assertTrue("Failed to unread chars", new String(c).equals(pbString 245 pReader2.unread('a'); 246 pReader2.unread('b'); 257 pReader.unread('i'); 283 * java.io.PushbackReader#unread(char[], int, int) 286 // Test for method void java.io.PushbackReader.unread(cha [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | PushbackInputStream.java | 31 * the ability to "push back" or "unread" 37 * the code fragment can "unread" it, so that 206 public void unread(int b) throws IOException { method in class:PushbackInputStream 229 public void unread(byte[] b, int off, int len) throws IOException { method in class:PushbackInputStream 251 public void unread(byte[] b) throws IOException { method in class:PushbackInputStream 252 unread(b, 0, b.length); 370 * Once the stream has been closed, further read(), unread(),
|
H A D | PushbackReader.java | 151 public void unread(int c) throws IOException { method in class:PushbackReader 174 public void unread(char cbuf[], int off, int len) throws IOException { method in class:PushbackReader 195 public void unread(char cbuf[]) throws IOException { method in class:PushbackReader 196 unread(cbuf, 0, cbuf.length); 242 * unread(), ready(), or skip() invocations will throw an IOException.
|
H A D | ObjectInputStream.java | 2395 private int unread = 0; field in class:ObjectInputStream.BlockDataInputStream 2425 unread = 0; 2427 throw new IllegalStateException("unread block data"); 2530 * unread fields to reflect the new amount of available block data; if 2532 * unread to 0 and end to -1. 2538 if (unread > 0) { 2540 in.read(buf, 0, Math.min(unread, MAX_BLOCK_SIZE)); 2543 unread -= n; 2552 unread = n; 2555 unread [all...] |
H A D | DataInputStream.java | 521 ((PushbackInputStream)in).unread(c2);
|
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | ZipInputStream.java | 375 ((PushbackInputStream)in).unread(buf, len - n, n); 388 ((PushbackInputStream)in).unread( 402 ((PushbackInputStream)in).unread(
|