Home
last modified time | relevance | path

Searched refs:cbuf (Results 1 – 21 of 21) sorted by relevance

/libcore/ojluni/src/main/java/java/io/
DWriter.java126 public void write(char cbuf[]) throws IOException { in write() argument
127 write(cbuf, 0, cbuf.length); in write()
145 abstract public void write(char cbuf[], int off, int len) throws IOException; in write() argument
182 char cbuf[]; in write() local
187 cbuf = writeBuffer; in write()
189 cbuf = new char[len]; in write()
191 str.getChars(off, (off + len), cbuf, 0); in write()
192 write(cbuf, 0, len); in write()
DReader.java99 char[] cbuf = new char[len]; in read() local
100 int n = read(cbuf, 0, len); in read()
102 target.put(cbuf, 0, n); in read()
139 public int read(char cbuf[]) throws IOException { in read() argument
140 return read(cbuf, 0, cbuf.length); in read()
157 abstract public int read(char cbuf[], int off, int len) throws IOException; in read() argument
DPushbackReader.java106 public int read(char cbuf[], int off, int len) throws IOException { in read() argument
113 } else if ((off < 0) || (off > cbuf.length)) { in read()
122 System.arraycopy(buf, pos, cbuf, off, avail); in read()
128 len = super.read(cbuf, off, len); in read()
174 public void unread(char cbuf[], int off, int len) throws IOException { in unread() argument
180 System.arraycopy(cbuf, off, buf, pos, len); in unread()
195 public void unread(char cbuf[]) throws IOException { in unread() argument
196 unread(cbuf, 0, cbuf.length); in unread()
DConsole.java422 public int read(char cbuf[], int offset, int length) in read() argument
427 if (offset < 0 || offset > cbuf.length || length < 0 || in read()
428 end < 0 || end > cbuf.length) { in read()
458 if (leftoverLF && cbuf == rcb && cb[nextChar] == '\n') { in read()
467 c = cbuf[off++] = cb[nextChar]; in read()
477 if (cbuf == rcb) { in read()
478 cbuf = grow(); in read()
479 end = cbuf.length; in read()
497 cbuf[off++] = '\n'; in read()
502 if (cbuf == rcb) { in read()
[all …]
DStringWriter.java87 public void write(char cbuf[], int off, int len) { in write() argument
88 if ((off < 0) || (off > cbuf.length) || (len < 0) || in write()
89 ((off + len) > cbuf.length) || ((off + len) < 0)) { in write()
94 buf.append(cbuf, off, len); in write()
DStringReader.java88 public int read(char cbuf[], int off, int len) throws IOException { in read() argument
91 if ((off < 0) || (off > cbuf.length) || (len < 0) || in read()
92 ((off + len) > cbuf.length) || ((off + len) < 0)) { in read()
100 str.getChars(next, next + n, cbuf, off); in read()
DBufferedWriter.java173 public void write(char cbuf[], int off, int len) throws IOException { in write() argument
176 if ((off < 0) || (off > cbuf.length) || (len < 0) || in write()
177 ((off + len) > cbuf.length) || ((off + len) < 0)) { in write()
188 out.write(cbuf, off, len); in write()
195 System.arraycopy(cbuf, b, cb, nextChar, d); in write()
DPipedReader.java296 public synchronized int read(char cbuf[], int off, int len) throws IOException { in read() argument
306 if ((off < 0) || (off > cbuf.length) || (len < 0) || in read()
307 ((off + len) > cbuf.length) || ((off + len) < 0)) { in read()
318 cbuf[off] = (char)c; in read()
321 cbuf[off + rlen] = buffer[out++]; in read()
DPipedWriter.java144 public void write(char cbuf[], int off, int len) throws IOException { in write() argument
147 } else if ((off | len | (off + len) | (cbuf.length - (off + len))) < 0) { in write()
150 sink.receive(cbuf, off, len); in write()
DBufferedReader.java213 private int read1(char[] cbuf, int off, int len) throws IOException { in read1() argument
221 return in.read(cbuf, off, len); in read1()
237 System.arraycopy(cb, nextChar, cbuf, off, n); in read1()
287 public int read(char cbuf[], int off, int len) throws IOException { in read() argument
290 if ((off < 0) || (off > cbuf.length) || (len < 0) || in read()
291 ((off + len) > cbuf.length) || ((off + len) < 0)) { in read()
297 int n = read1(cbuf, off, len); in read()
300 int n1 = read1(cbuf, off + n, len - n); in read()
DFilterWriter.java77 public void write(char cbuf[], int off, int len) throws IOException { in write() argument
78 out.write(cbuf, off, len); in write()
DLineNumberReader.java164 public int read(char cbuf[], int off, int len) throws IOException { in read() argument
166 int n = super.read(cbuf, off, len); in read()
169 int c = cbuf[i]; in read()
DFilterReader.java73 public int read(char cbuf[], int off, int len) throws IOException { in read() argument
74 return in.read(cbuf, off, len); in read()
DInputStreamReader.java183 public int read(char cbuf[], int offset, int length) throws IOException { in read() argument
184 return sd.read(cbuf, offset, length); in read()
DOutputStreamWriter.java206 public void write(char cbuf[], int off, int len) throws IOException { in write() argument
207 se.write(cbuf, off, len); in write()
DObjectOutputStream.java1803 private final char[] cbuf = new char[CHAR_BUF_SIZE]; field in ObjectOutputStream.BlockDataOutputStream
2066 s.getChars(off, off + csize, cbuf, 0); in writeBytes()
2074 buf[pos++] = (byte) cbuf[cpos++]; in writeBytes()
2084 s.getChars(off, off + csize, cbuf, 0); in writeChars()
2085 writeChars(cbuf, 0, csize); in writeChars()
2224 s.getChars(off, off + csize, cbuf, 0); in getUTFLength()
2226 char c = cbuf[cpos]; in getUTFLength()
2289 s.getChars(off, off + csize, cbuf, 0); in writeUTFBody()
2291 char c = cbuf[cpos]; in writeUTFBody()
DObjectInputStream.java2395 private final char[] cbuf = new char[CHAR_BUF_SIZE]; field in ObjectInputStream.BlockDataInputStream
3118 cbuf[cpos++] = (char) b1; in readUTFSpan()
3127 cbuf[cpos++] = (char) (((b1 & 0x1F) << 6) | in readUTFSpan()
3138 cbuf[cpos++] = (char) (((b1 & 0x0F) << 12) | in readUTFSpan()
3161 sbuf.append(cbuf, 0, cpos); in readUTFSpan()
/libcore/ojluni/src/main/java/sun/nio/cs/
DStreamEncoder.java111 char cbuf[] = new char[1]; in write() local
112 cbuf[0] = (char) c; in write()
113 write(cbuf, 0, 1); in write()
116 public void write(char cbuf[], int off, int len) throws IOException { in write() argument
119 if ((off < 0) || (off > cbuf.length) || (len < 0) || in write()
120 ((off + len) > cbuf.length) || ((off + len) < 0)) { in write()
125 implWrite(cbuf, off, len); in write()
133 char cbuf[] = new char[len]; in write() local
134 str.getChars(off, off + len, cbuf, 0); in write()
135 write(cbuf, 0, len); in write()
[all …]
DStreamDecoder.java146 public int read(char cbuf[], int offset, int length) throws IOException { in read() argument
151 if ((off < 0) || (off > cbuf.length) || (len < 0) || in read()
152 ((off + len) > cbuf.length) || ((off + len) < 0)) { in read()
162 cbuf[off] = leftoverChar; in read()
176 cbuf[off] = (char)c; in read()
180 return n + implRead(cbuf, off, off + len); in read()
307 int implRead(char[] cbuf, int off, int end) throws IOException { in implRead() argument
315 CharBuffer cb = CharBuffer.wrap(cbuf, off, end - off); in implRead()
/libcore/luni/src/test/java/libcore/java/io/
DOldBufferedWriterTest.java308 public void write(char cbuf[], int off, int len) throws IOException { in test_closeException()
DOldBufferedReaderTest.java401 public int read(char cbuf[], int off, int len) throws IOException { in test_closeException()