Searched refs:read (Results 201 - 225 of 243) sorted by relevance

12345678910

/libcore/luni/src/main/java/java/nio/
H A DDatagramChannelImpl.java271 public int read(ByteBuffer target) throws IOException { method in class:DatagramChannelImpl
298 public long read(ByteBuffer[] targets, int offset, int length) throws IOException { method in class:DatagramChannelImpl
308 // read data to readBuffer, and then transfer data from readBuffer to
327 * read from channel, and store the result in the target.
430 * Status check, must be open and connected, for read and write.
H A DCharBuffer.java116 * buffer is read-only.
153 * Returns a read-only buffer that shares its content with this buffer.
156 * buffer is read-only itself. The new buffer's position, limit, capacity
163 * @return a read-only version of this buffer.
235 * the same as this buffer's. The duplicated buffer's read-only property and
288 * increases the position by the number of chars read.
306 * number of chars read.
314 * The number of chars to read, must be no less than zero and no
594 * mark is cleared. The new buffer's read-only property and byte order are
609 * The new buffer's read
733 public int read(CharBuffer target) throws IOException { method in class:CharBuffer
[all...]
H A DSelectorImpl.java237 while (IoBridge.read(wakeupIn, buffer, 0, 1) > 0) {
/libcore/luni/src/main/java/java/util/
H A DProperties.java289 intVal = br.read();
351 intVal = br.read();
481 * from this method is suitable for being read by the
574 * @throws IOException in case an error occurs during a read operation.
/libcore/luni/src/main/java/libcore/io/
H A DPosix.java119 public int read(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException { method in class:Posix
126 public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException { method in class:Posix
H A DIoBridge.java58 // may appear to have zero size and yet a previous read call may have
59 // read some amount of data and caused the file position to be advanced.
65 // The fd is unwilling to opine about its read buffer.
385 * directories: POSIX says read-only is okay, but java.io doesn't even allow that. We also
416 * java.io thinks that a read at EOF is an error and should return -1, contrary to traditional
417 * Unix practice where you'd read until you got 0 bytes (and any future read would return -1).
419 public static int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOException { method in class:IoBridge
425 int readCount = Libcore.os.read(fd, bytes, byteOffset, byteCount);
432 // We return 0 rather than throw if we try to read fro
[all...]
/libcore/luni/src/test/java/libcore/java/util/logging/
H A DOldFileHandlerTest.java370 reader.read(chars);
373 assertEquals(-1, reader.read());
H A DOldLogManagerTest.java210 @Override public int read() throws IOException { method in class:OldLogManagerTest.MockInputStream
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DSSLSocketTest.java185 int readFromServer = client.getInputStream().read(clientFromServer);
186 int readFromClient = server.getInputStream().read(serverFromClient);
1056 input.read();
1061 input.read(null, -1, -1);
1121 server.getInputStream().read();
1158 // setSoTimeout applies to read, not connect, so connect first
1167 clientWrapping.getInputStream().read();
1276 toRead.getInputStream().read();
1309 assertEquals(-1, wrapping.getInputStream().read());
/libcore/luni/src/test/java/tests/api/javax/net/ssl/
H A DHandshakeCompletedEventTest.java432 int j = istream.read();
513 int j = istream.read();
H A DSSLSessionTest.java517 istream.read(buffer);
590 istream.read(buffer);
/libcore/support/src/test/java/tests/http/
H A DMockWebServer.java438 int count = in.read(buffer, 0, Math.min(buffer.length, length));
454 int c = in.read();
/libcore/benchmarks/src/benchmarks/regression/
H A DParseBenchmark.java118 while ((count = reader.read(buffer)) != -1) {
/libcore/crypto/src/main/java/org/conscrypt/
H A DOpenSSLX509CertPath.java194 final int len = pbis.read(buffer);
/libcore/luni/src/main/java/libcore/net/url/
H A DJarURLConnectionImpl.java148 while ((nbytes = is.read(buf)) > -1) {
/libcore/luni/src/main/java/org/apache/harmony/security/utils/
H A DJarUtils.java176 signature.read(sfBytes);
/libcore/luni/src/main/native/
H A Djava_util_zip_Inflater.cpp67 // As an Android-specific optimization, we read directly onto the native heap.
68 // The original code used Java to read onto the Java heap and then called setInput(byte[]).
79 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, dst, len))) > 0) {
/libcore/luni/src/test/java/libcore/java/util/jar/
H A DOldManifestTest.java164 m2.read(is);
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DURLConnectionTest.java410 ((InputStream) fileURLCon.getContent(null)).read(ba, 0, 600);
417 ((InputStream) fileURLCon.getContent(new Class[] {})).read(ba, 0, 600);
424 ((InputStream) fileURLCon.getContent(new Class[] { Class.class })).read(ba,
1233 ((InputStream) uc2.getInputStream()).read(ba, 0, 600);
1311 // create content to read
1332 // read content from file
/libcore/luni/src/main/java/java/io/
H A DObjectInputStream.java35 * A specialized {@link InputStream} that is able to read (deserialize) Java
52 // If the receiver has already read & not consumed a TC code
65 // Where we read from
68 // Where we read primitive types from
78 * All the objects we've read, indexed by their serialization handle (minus the base offset).
88 // All validations to be executed when the complete graph is read. See inner
126 * read from the source stream.
161 * a value when read from the source stream.
181 * a value when read from the source stream.
201 * a value when read fro
529 public int read() throws IOException { method in class:ObjectInputStream
534 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:ObjectInputStream
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
H A DServerSocketChannelTest.java296 * Asserts read content. The read content should contain <code>size</code>
305 while ((count = in.read(readContent, total, size + 1 - total)) != -1) {
512 * Uses SocketChannel.read(ByteBuffer) to verify write result.
519 while ((count = clientChannel.read(buf)) != -1) {
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatParser.java495 while ((length = in.read(buffer)) != -1) {
511 while ((length = in.read(buffer)) != -1) {
/libcore/luni/src/test/java/tests/api/javax/xml/parsers/
H A DSAXParserTestSupport.java98 int c = is.read();
116 c = is.read();
/libcore/dalvik/src/test/java/dalvik/system/profiler/
H A DSamplingProfilerTest.java290 reader.read();
/libcore/luni/src/main/java/java/net/
H A DURLConnection.java52 * connect timeout} and a {@link #setReadTimeout read timeout}. By default,
584 * @return the InputStream to read data from.
703 int length = is.read(bytes);
982 * Sets the maximum time to wait for an input stream read to complete before
985 * {@code 0} disables read timeouts; read attempts will block indefinitely.
987 * @param timeoutMillis the read timeout in milliseconds. Non-negative.
997 * Returns the read timeout in milliseconds, or {@code 0} if reads never

Completed in 423 milliseconds

12345678910