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()
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()
/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.java147 public int read(char cbuf[], int offset, int length) throws IOException { in read() argument
152 if ((off < 0) || (off > cbuf.length) || (len < 0) || in read()
153 ((off + len) > cbuf.length) || ((off + len) < 0)) { in read()
163 cbuf[off] = leftoverChar; in read()
177 cbuf[off] = (char)c; in read()
181 return n + implRead(cbuf, off, off + len); in read()
310 int implRead(char[] cbuf, int off, int end) throws IOException { in implRead() argument
318 CharBuffer cb = CharBuffer.wrap(cbuf, off, end - off); in implRead()
/libcore/ojluni/annotations/hiddenapi/java/io/
DConsole.java132 public int read(char[] cbuf, int offset, int length) throws java.io.IOException { in read() argument
DObjectOutputStream.java470 private final char[] cbuf; field in ObjectOutputStream.BlockDataOutputStream
473 cbuf = new char[0];
DObjectInputStream.java534 private final char[] cbuf; field in ObjectInputStream.BlockDataInputStream
537 cbuf = new char[0];
/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()