Lines Matching refs:read
113 // get the size to read.
117 // create the initial buffer and read it.
119 int read = stream.read(buffer);
122 if (read == intSize) {
126 // check if there is more to read (read() does not necessarily read all that
129 if (read + avail > buffer.length) {
132 byte[] moreBuffer = new byte[read + avail];
133 System.arraycopy(buffer, 0, moreBuffer, 0, read);
137 read += stream.read(buffer, read, avail);
144 throw new XmlPullParserException("Failed to read " + name, null, e);