/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
ScannerParseLargeFileBenchmarkTest.java | 53 public int read(char[] buffer, int offset, int length) { method in class:ScannerParseLargeFileBenchmarkTest.FakeLargeFile
|
/libcore/luni/src/test/java/libcore/java/io/ |
FilterInputStreamNullSourceTest.java | 51 in.read(); 107 in.read(); 123 in.read();
|
ObjectOutputStreamTest.java | 104 Serializable read; local 107 read = (Serializable) ois.readObject(); 109 return read;
|
OldAndroidByteArrayInputStreamTest.java | 38 Assert.assertEquals(str, read(a)); 39 Assert.assertEquals("AbCdEfGhIj", read(b, 10)); 44 public static String read(InputStream a) throws IOException { method in class:OldAndroidByteArrayInputStreamTest 48 r = a.read(); 55 public static String read(InputStream a, int x) throws IOException { method in class:OldAndroidByteArrayInputStreamTest 57 int len = a.read(b, 0, x); 69 r = a.read(); 82 r = a.read();
|
OldAndroidCharArrayReaderTest.java | 37 Assert.assertEquals(str, read(a)); 38 Assert.assertEquals("AbCdEfGhIj", read(b, 10)); 43 public static String read(Reader a) throws IOException { method in class:OldAndroidCharArrayReaderTest 47 r = a.read(); 54 public static String read(Reader a, int x) throws IOException { method in class:OldAndroidCharArrayReaderTest 56 int len = a.read(b, 0, x); 68 r = a.read(); 81 r = a.read();
|
OldAndroidPushbackReaderTest.java | 37 Assert.assertEquals("PUSHAbCdEfGhIjKlMnOpQrStUvWxYz", read(a)); 45 Assert.assertEquals("XAbCdEfGhI", read(b, 10)); 58 public static String read(Reader a) throws IOException { method in class:OldAndroidPushbackReaderTest 62 r = a.read(); 69 public static String read(Reader a, int x) throws IOException { method in class:OldAndroidPushbackReaderTest 71 int len = a.read(b, 0, x); 83 r = a.read();
|
OldAndroidStringReaderTest.java | 35 Assert.assertEquals(str, read(a)); 36 Assert.assertEquals("AbCdEfGhIj", read(b, 10)); 41 public static String read(Reader a) throws IOException { method in class:OldAndroidStringReaderTest 45 r = a.read(); 52 public static String read(Reader a, int x) throws IOException { method in class:OldAndroidStringReaderTest 54 int len = a.read(b, 0, x); 66 r = a.read(); 79 r = a.read();
|
OldLineNumberReaderTest.java | 53 * java.io.LineNumberReader#read() 58 int c = lnr.read(); 59 assertEquals("Test 1: Read returned incorrect character;", 61 lnr.read(); 62 assertEquals("Test 2: Read failed to increase the line number;", 67 lnr.read(); 75 * java.io.LineNumberReader#read(char[], int, int) 80 lnr.read(c, 0, 4); 81 assertTrue("Test 1: Read returned incorrect characters.", "0\n1\n" 83 assertEquals("Test 2: Read failed to inc lineNumber" [all...] |
OldSequenceInputStreamTest.java | 56 si.read(); 57 assertEquals("Test 1: Incorrect char read;", 58 s1.charAt(1), (char) si.read()); 63 assertEquals("Test 2: Incorrect char read;", 64 s1.charAt(2), (char) si.read()); 71 si.read(); 79 si.read(); 80 si.read(); 84 si.read(); 93 assertEquals("Test 6: Incorrect char read;", [all...] |
/libcore/luni/src/test/java/libcore/java/util/jar/ |
OldJarInputStreamTest.java | 72 jis.read(b, 0, 100); 78 jis.read(b, 0, 100); 86 jis.read(b, 0, 100); // But RI here, only!
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
DeflaterInputStreamTest.java | 37 while ((b = in.read()) != -1) { 57 while ((count = in.read(buffer)) != -1) { 70 while ((count = in.read(buffer, 0, 5)) != -1) { 91 in.read(buffer, 0, 10); 96 in.read(null, 0, 5); 101 in.read(buffer, -1, 5); 107 in.read(buffer, 0, 5);
|
/libcore/ojluni/src/main/java/java/io/ |
LineNumberInputStream.java | 39 * <code>1</code> when a <code>read</code> returns a newline character. 76 * The <code>read</code> method of 77 * <code>LineNumberInputStream</code> calls the <code>read</code> 90 public int read() throws IOException { method in class:LineNumberInputStream 96 c = in.read(); 101 pushBack = in.read(); 116 * The <code>read</code> method of 118 * <code>read</code> method of zero arguments to fill in the byte array. 120 * @param b the buffer into which the data is read. 122 * @param len the maximum number of bytes read 129 public int read(byte b[], int off, int len) throws IOException { method in class:LineNumberInputStream [all...] |
LineNumberReader.java | 36 * <a href="#lt">line terminator</a> as the data is read, and can be changed 113 * Read a single character. <a href="#lt">Line terminators</a> are 115 * terminator is read the current line number is incremented. 117 * @return The character read, or -1 if the end of the stream has been 123 public int read() throws IOException { method in class:LineNumberReader 125 int c = super.read(); 128 c = super.read(); 143 * Read characters into a portion of an array. Whenever a <a 144 * href="#lt">line terminator</a> is read the current line number is 154 * Maximum number of characters to read 162 public int read(char cbuf[], int off, int len) throws IOException { method in class:LineNumberReader [all...] |
PushbackInputStream.java | 34 * to read an indefinite number of data bytes 38 * the next read operation on the input stream 43 * a method whose job is to read just an identifier 44 * can read until it sees the operator and 45 * then push the operator back to be re-read. 61 * be read. When the buffer is empty, <code>pos</code> is equal to 86 * @param in the input stream from which bytes will be read. 108 * @param in the input stream from which bytes will be read. 124 * one, and otherwise calls the <code>read</code> method of its underlying 132 * @see java.io.InputStream#read() 134 public int read() throws IOException { method in class:PushbackInputStream 165 public int read(byte[] b, int off, int len) throws IOException { method in class:PushbackInputStream [all...] |
PushbackReader.java | 48 * @param in The reader from which characters will be read 64 * @param in The reader from which characters will be read 79 * @return The character read, or -1 if the end of the stream has been 84 public int read() throws IOException { method in class:PushbackReader 90 return super.read(); 99 * @param len Maximum number of characters to read 101 * @return The number of characters read, or -1 if the end of the 106 public int read(char cbuf[], int off, int len) throws IOException { method in class:PushbackReader 128 len = super.read(cbuf, off, len); 143 * pushback buffer. After this method returns, the next character to be read [all...] |
Reader.java | 31 * subclass must implement are read(char[], int, int) and close(). Most 84 * Attempts to read characters into the specified character buffer. 89 * @param target the buffer to read characters into 94 * @throws ReadOnlyBufferException if target is a read only buffer 97 public int read(java.nio.CharBuffer target) throws IOException { method in class:Reader 100 int n = read(cbuf, 0, len); 113 * @return The character read, as an integer in the range 0 to 65535 119 public int read() throws IOException { method in class:Reader 121 if (read(cb, 0, 1) == -1) 133 * @return The number of characters read, or - 139 public int read(char cbuf[]) throws IOException { method in class:Reader 157 abstract public int read(char cbuf[], int off, int len) throws IOException; method in class:Reader [all...] |
/libcore/ojluni/src/main/java/java/nio/channels/ |
FileChannel.java | 43 * of bytes that can be read and written and whose current {@link #size 51 * <p> In addition to the familiar read, write, and close operations of byte 56 * <li><p> Bytes may be {@link #read(ByteBuffer, long) read} or 63 * than invoking the usual <tt>read</tt> or <tt>write</tt> methods. 165 * <p> Bytes are read starting at this channel's current file position, and 167 * read. Otherwise this method behaves exactly as specified in the {@link 170 public abstract int read(ByteBuffer dst) throws IOException; method in class:FileChannel 176 * <p> Bytes are read starting at this channel's current file position, and 178 * read. Otherwise this method behaves exactly as specified in the {@lin 181 public abstract long read(ByteBuffer[] dsts, int offset, int length) method in class:FileChannel 192 public final long read(ByteBuffer[] dsts) throws IOException { method in class:FileChannel 555 public abstract int read(ByteBuffer dst, long position) throws IOException; method in class:FileChannel [all...] |
SocketChannel.java | 59 * thread is blocked in a read operation on the socket's channel, then the read 107 * mutually synchronized against each other, and an attempt to initiate a read 333 * <p> This method may be invoked at any time. If a read or write 401 * <p> This method may be invoked at any time. If a read or write 458 public abstract int read(ByteBuffer dst) throws IOException; method in class:SocketChannel 464 public abstract long read(ByteBuffer[] dsts, int offset, int length) method in class:SocketChannel 471 public final long read(ByteBuffer[] dsts) throws IOException { method in class:SocketChannel 472 return read(dsts, 0, dsts.length);
|
/libcore/ojluni/src/main/java/javax/crypto/ |
CipherInputStream.java | 32 * that read() methods return data that are read in from the 38 * CipherInputStream will attempt to read in data and decrypt them, 74 /* the buffer holding data that have been read in from the 83 engine, but have not been read out */ 103 int readin = input.read(ibuffer); 173 public int read() throws IOException { method in class:CipherInputStream 187 * The <code>read</code> method of <code>InputStream</code> calls 188 * the <code>read</code> method of three arguments with the arguments 191 * @param b the buffer into which the data is read 199 public int read(byte b[]) throws IOException { method in class:CipherInputStream 220 public int read(byte b[], int off, int len) throws IOException { method in class:CipherInputStream [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
ChannelInputStream.java | 51 // the read) we never do that, though. 53 // read(ReadableByteChannel,ByteBuffer, boolean block) 54 public static int read(ReadableByteChannel ch, ByteBuffer bb) method in class:ChannelInputStream 66 int n = ch.read(bb); 73 return ch.read(bb); 86 public synchronized int read() throws IOException { method in class:ChannelInputStream 89 int n = this.read(b1); 95 public synchronized int read(byte[] bs, int off, int len) method in class:ChannelInputStream 111 return read(bb); 114 protected int read(ByteBuffer bb method in class:ChannelInputStream [all...] |
/libcore/ojluni/src/main/java/sun/security/ssl/ |
AppInputStream.java | 46 // One element array used to implement the single byte read() method 55 * Return the minimum number of bytes that can be read without blocking. 66 * Read a single byte, returning -1 on non-fault EOF status. 68 public synchronized int read() throws IOException { method in class:AppInputStream 69 int n = read(oneByte, 0, 1); 77 * Read up to "len" bytes into this buffer, starting at "off". 82 public synchronized int read(byte b[], int off, int len) method in class:AppInputStream 97 * Read data if needed ... notice that the connection guarantees 109 howmany = r.read(b, off, howmany); 123 * the read() code to keep things simpler. Note that SKIP_ARRA [all...] |
HandshakeInStream.java | 48 * AppInStream.r, which is where data from the socket is initially read 72 * Return the number of bytes available for read(). 84 public int read() throws IOException { method in class:HandshakeInStream 85 int n = r.read(); 95 public int read(byte b [], int off, int len) throws IOException { method in class:HandshakeInStream 96 // we read from a ByteArrayInputStream, it always returns the 97 // data in a single read if enough is available 98 int n = r.read(b, off, len); 117 * read, data that has already been consumed is lost even if marked). 166 * Read 8, 16, 24, and 32 bit SSL integer data types, encode 196 read(b, 0, len); method 205 read(b, 0, len); method 214 read(b, 0, len); method [all...] |
/libcore/support/src/test/java/libcore/tlswire/handshake/ |
ClientHello.java | 45 clientVersion = TlsProtocolVersion.read(in); 77 extensions.add(HelloExtension.read(extensionsDataIn)); 80 "Failed to read HelloExtension #" + (extensions.size() + 1));
|
/libcore/support/src/test/java/tests/support/ |
Support_StringReader.java | 48 * longer read from it. Only the first invocation of this method has any 112 * @return the character read or -1 if end of reader. 118 public int read() throws IOException { method in class:Support_StringReader 133 * <code>buf</code>. Returns the number of characters actually read or -1 137 * character array to store the read characters 139 * offset in buf to store the read characters 141 * maximum number of characters to read 142 * @return the number of characters read or -1 if end of reader. 148 public int read(char buf[], int offset, int count) throws IOException { method in class:Support_StringReader 160 int read = end - pos local [all...] |
/packages/apps/Camera2/src/com/android/camera/exif/ |
CountedDataInputStream.java | 44 public int read(byte[] b) throws IOException { method in class:CountedDataInputStream 45 int r = in.read(b); 51 public int read(byte[] b, int off, int len) throws IOException { method in class:CountedDataInputStream 52 int r = in.read(b, off, len); 58 public int read() throws IOException { method in class:CountedDataInputStream 59 int r = in.read(); 83 int r = read(b, off, len);
|