Lines Matching refs:read
42 * gets called. Instead, it will read until the "end" of its chunking on
44 * requests, while not requiring the client to remember to read the entire
80 * The maximum number of bytes that can be read from the stream. Subsequent
81 * read operations will return -1.
100 * @param contentLength The maximum number of bytes that can be read from
101 * the stream. Subsequent read operations will return -1.
126 while (read(buffer) >= 0) {
130 // to read after closed!
141 * @see java.io.InputStream#read()
143 public int read() throws IOException {
145 throw new IOException("Attempted read from closed stream.");
152 return this.in.read();
156 * Does standard {@link InputStream#read(byte[], int, int)} behavior, but
161 * @param len The number of bytes to attempt to read.
162 * @return The number of bytes read, or -1 if the end of content has been
167 public int read (byte[] b, int off, int len) throws java.io.IOException {
169 throw new IOException("Attempted read from closed stream.");
179 int count = this.in.read(b, off, len);
188 * @return The number of bytes read into the buffer.
190 * @see java.io.InputStream#read(byte[])
192 public int read(byte[] b) throws IOException {
193 return read(b, 0, b.length);
215 int l = read(buffer, 0, (int)Math.min(BUFFER_SIZE, remaining));