Lines Matching defs:offset
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 {
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, available);
214 System.arraycopy(buffer, offset, this.buf, pos, available);
244 * Writes {@code count} characters starting at {@code offset} in {@code str}
252 * @param offset
260 * if {@code offset < 0} or {@code offset + count} is greater
264 public void write(String str, int offset, int count) throws IOException {
270 if (offset < 0 || offset > str.length() - count) {
271 throw new StringIndexOutOfBoundsException(str, offset, count);
275 str.getChars(offset, offset + count, chars, 0);
284 str.getChars(offset, offset + available, buf, pos);
291 offset += available;
295 str.getChars(offset, offset + available, chars, 0);
299 str.getChars(offset, offset + available, buf, pos);