Searched refs:read (Results 1 - 25 of 267) sorted by relevance

1234567891011

/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
H A DPasswordProtectedInputStream.java38 * @param in The actual input stream where to read the bytes from.
47 public int read() throws IOException { method in class:PasswordProtectedInputStream
48 int read = in.read();
49 if (read >= 0) {
50 read ^= password[pwdIndex];
53 return read;
57 public int read(byte b[], int off, int len) throws IOException { method in class:PasswordProtectedInputStream
58 int read = in.read(
[all...]
H A DPositionedInputStream.java34 * @param in The actual input stream where to read the bytes from.
50 public int read() throws IOException { method in class:PositionedInputStream
51 int read = in.read();
52 if (read >= 0) {
55 return read;
60 public int read(byte b[], int off, int len) throws IOException { method in class:PositionedInputStream
61 int read = in.read(b, off, len);
62 if (read >
[all...]
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DSSLInputStream.java26 * some additional read methods allowing to read TLS specific
41 * @see org.apache.harmony.xnet.provider.jsse.SSLStreamedInput#read()
42 * @see org.apache.harmony.xnet.provider.jsse.SSLBufferedInput#read()
43 * @see org.apache.harmony.xnet.provider.jsse.HandshakeIODataStream#read()
46 public abstract int read() throws IOException; method in class:SSLInputStream
52 read();
62 return read() & 0x00FF;
69 return (read() << 8) | (read()
104 public byte[] read(int length) throws IOException { method in class:SSLInputStream
113 public int read(byte[] b, int off, int len) throws IOException { method in class:SSLInputStream
[all...]
H A DSSLStreamedInput.java42 * @return the value read from the underlying stream.
43 * @throws IOException if the data could not be read from
49 public int read() throws IOException { method in class:SSLStreamedInput
50 int res = in.read();
/dalvik/libcore/luni/src/main/java/java/io/
H A DObjectInput.java28 * Indicates the number of bytes of primitive data that can be read without
51 * @return the byte read or -1 if the end of this stream has been reached.
55 public int read() throws IOException; method in interface:ObjectInput
62 * the array in which to store the bytes read.
63 * @return the number of bytes read or -1 if the end of this stream has been
68 public int read(byte[] buffer) throws IOException; method in interface:ObjectInput
76 * the array in which to store the bytes read.
78 * the initial position in {@code buffer} to store the bytes read
82 * @return the number of bytes read or -1 if the end of this stream has been
87 public int read(byt method in interface:ObjectInput
[all...]
H A DReader.java29 * needs to be subclassed, and at least the {@link #read(char[], int, int)} and
81 * indicates how many characters can be read before the mark is invalidated.
89 * the number of characters that can be read before the mark is
118 * @return the character read or -1 if the end of the reader has been
123 public int read() throws IOException { method in class:Reader
126 if (read(charArray, 0, 1) != -1) {
136 * actually read or -1 if the end of the reader has been reached.
139 * character array to store the characters read.
140 * @return the number of characters read or -1 if the end of the reader has
145 public int read(cha method in class:Reader
170 public abstract int read(char[] buf, int offset, int count) method in class:Reader
265 public int read(CharBuffer target) throws IOException { method in class:Reader
[all...]
H A DInputStream.java29 * {@link #read()} method needs to be overridden. Overriding some of the
51 * Returns an estimated number of bytes that can be read or skipped without blocking for more
58 * blocking": a read may still block waiting for I/O to complete&nbsp;&mdash; the guarantee is
70 * read or skip will actually read or skip that many bytes: they may read or skip fewer.
73 * size a container and assume that you can read the entirety of the stream without needing
74 * to resize the container. Such callers should probably write everything they read to a
104 * indicates how many bytes can be read before the mark is invalidated.
112 * the number of bytes that can be read fro
143 public abstract int read() throws IOException; method in class:InputStream
155 public int read(byte[] b) throws IOException { method in class:InputStream
182 public int read(byte[] b, int offset, int length) throws IOException { method in class:InputStream
[all...]
H A DLineNumberReader.java23 * time {@code '\r'}, {@code '\n'} or {@code "\r\n"} is read. The class has an
75 * indicates how many characters can be read before the mark is invalidated.
82 * the number of characters that can be read from this stream
108 * @return the character read or -1 if the end of the source reader has been
115 public int read() throws IOException { method in class:LineNumberReader
117 int ch = super.read();
119 ch = super.read();
137 * Returns the number of characters actually read or -1 if no characters
138 * have been read and the end of this reader has been reached.
145 * the array in which to store the characters read
157 public int read(char[] buffer, int offset, int count) throws IOException { method in class:LineNumberReader
[all...]
H A DFilterInputStream.java22 * the input data while it is being read. Transformations can be anything from a
67 * indicates how many bytes can be read before the mark is invalidated.
74 * the number of bytes that can be read from this stream before
105 * @return the byte read or -1 if the end of the filtered stream has been
111 public int read() throws IOException { method in class:FilterInputStream
112 return in.read();
117 * {@code buffer}. Returns the number of bytes actually read or -1 if no
118 * bytes were read and the end of this stream was encountered. This
122 * the byte array in which to store the read bytes.
123 * @return the number of bytes actually read o
129 public int read(byte[] buffer) throws IOException { method in class:FilterInputStream
153 public int read(byte[] buffer, int offset, int count) throws IOException { method in class:FilterInputStream
[all...]
H A DFilterReader.java22 * input data while it is being read. Transformations can be anything from a
63 * indicates how many bytes can be read before the mark is invalidated.
70 * the number of bytes that can be read from this reader before
106 * @return The character read or -1 if the end of the filtered reader has
112 public int read() throws IOException { method in class:FilterReader
114 return in.read();
121 * number of characters actually read or -1 if no characters were read and
125 * the char array in which to store the characters read.
128 * read fro
137 public int read(char[] buffer, int offset, int count) throws IOException { method in class:FilterReader
[all...]
/dalvik/libcore/sql/src/main/java/java/sql/
H A DDataTruncation.java36 private boolean read = false; field in class:DataTruncation
60 * @param read
61 * {@code true} if the truncation occurred on a read operation,
68 public DataTruncation(int index, boolean parameter, boolean read, argument
73 this.read = read;
79 * Gets the number of bytes of data that should have been read/written.
81 * @return the number of bytes that should have been read or written. The
108 * Gets whether the value was truncated on a read operation or a write
111 * @return {@code true} if the value was truncated on a read operatio
[all...]
/dalvik/libcore/luni/src/main/java/java/lang/
H A DReadable.java23 * Represents a sequence of characters that can be incrementally read (copied)
30 * number of characters read is {@code CharBuffer.remaining()}.
33 * the buffer to be filled with characters read.
34 * @return the number of characters actually read, or -1 if this
39 int read(CharBuffer cb) throws IOException; method in interface:Readable
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
H A DBufferedReaderTest.java32 * @tests java.io.BufferedReader#read(char[], int, int)
37 method = "read",
46 reader.read(null, 1, 0);
53 reader.read(ch , -1, 1);
60 reader.read(ch , 1, -1);
67 reader.read(ch, 1, 3);
75 reader.read(ch, 1, 1);
102 int result = buf.read(chars);
107 assertEquals("Assert 3:", '3', buf.read());
112 result = buf.read(char
[all...]
/dalvik/libcore/nio/src/main/java/java/nio/channels/
H A DScatteringByteChannel.java23 * The interface for channels that can read data into a set of buffers in a
32 * This method is equivalent to {@code read(buffers, 0, buffers.length);}
35 * the array of byte buffers to store the bytes being read.
36 * @return the number of bytes actually read.
38 * if the channel is closed by another thread during this read
52 public long read(ByteBuffer[] buffers) throws IOException; method in interface:ScatteringByteChannel
55 * Attempts to read all {@code remaining()} bytes from {@code length} byte
57 * bytes actually read is returned.
59 * If a read operation is in progress, subsequent threads will block until
60 * the read i
88 public long read(ByteBuffer[] buffers, int offset, int length) method in interface:ScatteringByteChannel
[all...]
H A DReadableByteChannel.java23 * A {@code ReadableByteChannel} is a type of {@link Channel} that can read
27 * if a read is already in progress on the channel then subsequent reads will
28 * block until the first read completes. It is undefined whether non-read
36 * The maximum number of bytes that will be read is the
38 * buffer when the method is invoked. The bytes will be read into the buffer
42 * The call may block if other threads are also attempting to read from the
46 * the bytes that were read. The buffer's
51 * @return the number of bytes actually read.
53 * if another thread closes the channel during the read
65 public int read(ByteBuffer buffer) throws IOException; method in interface:ReadableByteChannel
[all...]
/dalvik/libcore-disabled/sound/src/main/java/javax/sound/sampled/
H A DAudioInputStream.java65 public int read() throws IOException { method in class:AudioInputStream
75 res = stream.read();
82 if (line.read(oneByte, 0, 1) == 0) {
90 public int read(byte[] b) throws IOException { method in class:AudioInputStream
91 return read(b, 0, b.length);
94 public int read(byte[] b, int off, int len) throws IOException { method in class:AudioInputStream
102 res = stream.read(b, off, l);
109 res = line.read(b, off, l);
127 int read = read(skipBu
[all...]
H A DTargetDataLine.java27 int read(byte[] b, int off, int len); method in interface:TargetDataLine
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DSequenceInputStreamTest.java98 si.read(buf, 0, s1.length());
99 si.read(buf, s1.length(), s2.length());
103 fail("IOException during read test : " + e.getMessage());
172 * @tests java.io.SequenceInputStream#read()
177 method = "read",
181 si.read();
182 assertEquals("Test 1: Incorrect char read;",
183 s1.charAt(1), (char) si.read());
188 assertEquals("Test 2: Incorrect char read;",
189 s1.charAt(2), (char) si.read());
[all...]
H A DLineNumberInputStreamTest.java86 lnis.read();
87 lnis.read();
91 assertEquals("stream returned incorrect line number after read", 1, lnis
114 assertEquals("Failed to mark", '0', lnis.read());
121 * @tests java.io.LineNumberInputStream#read()
125 method = "read",
129 assertEquals("Test 1: Failed to read correct byte;",
130 '0', lnis.read());
131 assertEquals("Test 2: Failed to read correct byte on dos text;",
132 '0', lnis2.read());
[all...]
/dalvik/libcore/security/src/main/java/java/security/
H A DDigestInputStream.java77 * @return the byte which was read or -1 at end of stream.
82 public int read() throws IOException { method in class:DigestInputStream
83 // read the next byte
84 int byteRead = in.read();
91 // return byte read
105 * the initial position in {@code b} to store the bytes read from
109 * @return the number of bytes actually read or -1 if the end of the
115 public int read(byte[] b, int off, int len) throws IOException { method in class:DigestInputStream
116 // read next up to len bytes
117 int bytesRead = in.read(
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/io/
H A DDigestInputStream.java22 public int read() method in class:DigestInputStream
25 int b = in.read();
34 public int read( method in class:DigestInputStream
40 int n = in.read(b, off, len);
H A DMacInputStream.java22 public int read() method in class:MacInputStream
25 int b = in.read();
34 public int read( method in class:MacInputStream
40 int n = in.read(b, off, len);
/dalvik/libcore/support/src/test/java/tests/support/
H A DThrowingReader.java26 * read.
38 @Override public int read() throws IOException { method in class:ThrowingReader
40 int result = super.read();
45 @Override public int read(char[] buf, int offset, int count) method in class:ThrowingReader
53 int returned = super.read(buf, offset, count);
/dalvik/libcore/crypto/src/main/java/javax/crypto/
H A DCipherInputStream.java27 * This class wraps an {@code InputStream} and a cipher so that {@code read()}
28 * methods return data that are read from the underlying {@code InputStream} and
34 * CipherInputStream} tries to read the data an decrypt them before returning.
50 * the input stream to read data from.
66 * the input stream to read data from.
80 public int read() throws IOException { method in class:CipherInputStream
93 if ((num_read = in.read(i_buffer)) == -1) {
104 return read();
119 public int read(byte[] b) throws IOException { method in class:CipherInputStream
120 return read(
144 public int read(byte[] b, int off, int len) throws IOException { method in class:CipherInputStream
[all...]
/dalvik/libcore/luni/src/main/java/java/util/
H A DPropertyPermission.java40 * There are two possible permission action types: read and write. Possible
41 * actions are "read", "write", or "read,write"/"write,read".
46 transient private boolean read, write; field in class:PropertyPermission
55 * "read", "write", or "read,write"/"write,read". Anything else
68 if (token.equals("read")) { //$NON-NLS-1$
69 read
[all...]

Completed in 347 milliseconds

1234567891011