/libcore/support/src/test/java/tests/support/ |
H A D | ThrowingReader.java | 45 @Override public int read(char[] buf, int offset, int count) argument 53 int returned = super.read(buf, offset, count);
|
/libcore/luni/src/main/java/java/io/ |
H A D | BufferedWriter.java | 165 * Writes {@code count} characters starting at {@code offset} in 172 * @param offset 177 * if {@code offset < 0} or {@code count < 0}, or if 178 * {@code offset + count} is greater than the size of 184 public void write(char[] buffer, int offset, int count) throws IOException { argument 190 Arrays.checkOffsetAndCount(buffer.length, offset, count); 192 out.write(buffer, offset, count); 200 System.arraycopy(buffer, offset, this.buf, pos, available); 207 offset += available; 210 out.write(buffer, offset, availabl 264 write(String str, int offset, int count) argument [all...] |
H A D | ByteArrayInputStream.java | 39 * The current mark position. Initially set to 0 or the <code>offset</code> 65 * {@code buf} with the initial position set to {@code offset} and the 66 * number of bytes available set to {@code offset} + {@code length}. 70 * @param offset 75 public ByteArrayInputStream(byte[] buf, int offset, int length) { argument 77 pos = offset; 78 mark = offset; 79 count = offset + length > buf.length ? buf.length : offset + length; 146 * them in byte array {@code b} starting at {@code offset} 166 read(byte[] buffer, int offset, int length) argument [all...] |
H A D | InputStreamReader.java | 189 * at position {@code offset} in the character array {@code buf}. Returns 197 * @param offset 205 * if {@code offset < 0} or {@code length < 0}, or if 206 * {@code offset + length} is greater than the length of 212 public int read(char[] buffer, int offset, int length) throws IOException { argument 218 Arrays.checkOffsetAndCount(buffer.length, offset, length); 223 CharBuffer out = CharBuffer.wrap(buffer, offset, length); 234 if (in.available() == 0 && out.position() > offset) { 281 return out.position() - offset == 0 ? -1 : out.position() - offset; [all...] |
H A D | LineNumberInputStream.java | 142 * them in the byte array {@code buffer} starting at {@code offset}. 153 * @param offset 161 * if {@code offset < 0} or {@code length < 0}, or if 162 * {@code offset + length} is greater than the length of 170 public int read(byte[] buffer, int offset, int length) throws IOException { argument 171 Arrays.checkOffsetAndCount(buffer.length, offset, length); 185 buffer[offset + i] = (byte) currentChar;
|
H A D | Reader.java | 134 * {@code buf} starting at offset 0. Returns the number of characters 150 * at {@code offset} in the character array {@code buf}. Returns the number 156 * @param offset 166 public abstract int read(char[] buf, int offset, int count) throws IOException; argument
|
H A D | StringWriter.java | 104 * Writes {@code count} characters starting at {@code offset} in {@code buf} 109 * @param offset 114 * if {@code offset < 0} or {@code count < 0}, or if {@code 115 * offset + count} is greater than the size of {@code buf}. 118 public void write(char[] chars, int offset, int count) { argument 119 Arrays.checkOffsetAndCount(chars.length, offset, count); 123 buf.append(chars, offset, count); 152 * offset} to this writer's {@code StringBuffer}. 156 * @param offset 161 * if {@code offset < 165 write(String str, int offset, int count) argument [all...] |
H A D | Writer.java | 98 * Writes {@code count} characters starting at {@code offset} in {@code buf} 103 * @param offset 108 * if {@code offset < 0} or {@code count < 0}, or if {@code 109 * offset + count} is greater than the size of {@code buf}. 113 public abstract void write(char[] buf, int offset, int count) throws IOException; argument 146 * offset} to the target. 150 * @param offset 157 * if {@code offset < 0} or {@code count < 0}, or if {@code 158 * offset + count} is greater than the length of {@code str}. 160 public void write(String str, int offset, in argument [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | CaseMapper.java | 36 * offset, and count fields. 43 * if nothing changes. We need 'value', 'offset', and 'count' because they're not otherwise 46 public static String toLowerCase(Locale locale, String s, char[] value, int offset, int count) { argument 55 for (int i = offset, end = offset + count; i < end; ++i) { 61 } else if (ch == GREEK_CAPITAL_SIGMA && isFinalSigma(value, offset, count, i)) { 68 newCount = i - offset; 69 System.arraycopy(value, offset, newValue, 0, newCount); 83 private static boolean isFinalSigma(char[] value, int offset, int count, int index) { argument 86 if (index <= offset) { 142 toUpperCase(Locale locale, String s, char[] value, int offset, int count) argument [all...] |
H A D | VMClassLoader.java | 78 native static Class defineClass(ClassLoader cl, String name, byte[] data, int offset, int len) argument 81 native static Class defineClass(ClassLoader cl, byte[] data, int offset, int len) argument
|
/libcore/luni/src/main/java/java/nio/ |
H A D | CharArrayBuffer.java | 36 protected final int offset; field in class:CharArrayBuffer 46 CharArrayBuffer(int capacity, char[] backingArray, int offset) { argument 49 this.offset = offset; 57 return backingArray[offset + position++]; 63 return backingArray[offset + index]; 71 System.arraycopy(backingArray, offset + position, dst, srcOffset, charCount); 97 return String.copyValueOf(backingArray, offset + position, remaining());
|
H A D | IoVec.java | 32 private final int offset; field in class:IoVec 41 IoVec(ByteBuffer[] byteBuffers, int offset, int bufferCount, Direction direction) { argument 43 this.offset = offset; 54 ByteBuffer b = byteBuffers[i + offset]; 90 ByteBuffer b = byteBuffers[i + offset];
|
H A D | PipeImpl.java | 86 public long read(ByteBuffer[] buffers, int offset, int length) throws IOException { argument 87 return channel.read(buffers, offset, length); 121 public long write(ByteBuffer[] buffers, int offset, int length) throws IOException { argument 122 return channel.write(buffers, offset, length);
|
/libcore/luni/src/main/java/java/nio/charset/ |
H A D | Charsets.java | 48 public static native byte[] toAsciiBytes(char[] chars, int offset, int length); argument 54 public static native byte[] toIsoLatin1Bytes(char[] chars, int offset, int length); argument 60 public static native byte[] toUtf8Bytes(char[] chars, int offset, int length); argument 66 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) { argument 68 int end = offset + length; 70 for (int i = offset; i < end; ++i) { 86 public static native void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars); argument 95 public static native void isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars); argument
|
/libcore/luni/src/main/java/java/sql/ |
H A D | Blob.java | 47 * offset {@code pos}, and returns them as a binary stream. 158 * @param offset 159 * the offset into the byte array from which to start writing 160 * data - the first byte in the array has offset {@code 0}. 168 public int setBytes(long pos, byte[] theBytes, int offset, int len) argument
|
H A D | Clob.java | 152 * character offset, to this {@code Clob}. 158 * @param offset 159 * the offset within {@code str} to start writing from. 166 public int setString(long pos, String str, int offset, int len) argument 191 * at 1-based offset {code pos}.
|
/libcore/luni/src/main/java/java/util/zip/ |
H A D | DeflaterOutputStream.java | 189 * {@code offset} and writes it to the underlying stream. 193 @Override public void write(byte[] buffer, int offset, int byteCount) throws IOException { argument 197 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); 201 def.setInput(buffer, offset, byteCount);
|
H A D | InflaterOutputStream.java | 141 public void write(byte[] bytes, int offset, int byteCount) throws IOException, ZipException { argument 143 Arrays.checkOffsetAndCount(bytes.length, offset, byteCount); 144 inf.setInput(bytes, offset, byteCount);
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | HeapBufferIterator.java | 29 private final int offset; field in class:HeapBufferIterator 35 HeapBufferIterator(byte[] buffer, int offset, int byteCount, ByteOrder order) { argument 37 this.offset = offset; 42 public void seek(int offset) { argument 43 position = offset; 51 System.arraycopy(buffer, offset + position, dst, dstOffset, byteCount); 56 byte result = buffer[offset + position]; 62 int result = Memory.peekInt(buffer, offset + position, order); 69 Memory.unsafeBulkGet(dst, dstOffset, byteCount, buffer, offset 83 iterator(byte[] buffer, int offset, int byteCount, ByteOrder order) argument [all...] |
H A D | NioBufferIterator.java | 40 public void seek(int offset) { argument 41 position = offset;
|
H A D | Streams.java | 64 * Reads exactly 'byteCount' bytes from 'in' (into 'dst' at offset 'offset'), and throws 69 public static void readFully(InputStream in, byte[] dst, int offset, int byteCount) throws IOException { argument 79 Arrays.checkOffsetAndCount(dst.length, offset, byteCount); 81 int bytesRead = in.read(dst, offset, byteCount); 85 offset += bytesRead;
|
/libcore/luni/src/main/java/libcore/net/http/ |
H A D | AbstractHttpInputStream.java | 72 protected final void cacheWrite(byte[] buffer, int offset, int count) throws IOException { argument 74 cacheBody.write(buffer, offset, count);
|
H A D | ChunkedInputStream.java | 39 @Override public int read(byte[] buffer, int offset, int count) throws IOException { argument 40 Arrays.checkOffsetAndCount(buffer.length, offset, count); 52 int read = in.read(buffer, offset, Math.min(count, bytesRemainingInChunk)); 58 cacheWrite(buffer, offset, read);
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
H A D | TextImpl.java | 49 public final Text splitText(int offset) throws DOMException { argument 51 substringData(offset, getLength() - offset)); 52 deleteData(0, offset);
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldReaderTest.java | 116 @Override public int read(char[] buf, int offset, int count) { argument
|