Searched defs:cbuf (Results 1 - 25 of 41) sorted by relevance

12

/openjdk7/jdk/test/java/io/charStreams/
H A DABCReader.java53 public int read(char cbuf[], int off, int len) { argument
62 cbuf[i] = (char) c;
/openjdk7/jdk/src/share/classes/java/io/
H A DFilterReader.java73 public int read(char cbuf[], int off, int len) throws IOException { argument
74 return in.read(cbuf, off, len);
H A DFilterWriter.java71 * @param cbuf Buffer of characters to be written
77 public void write(char cbuf[], int off, int len) throws IOException { argument
78 out.write(cbuf, off, len);
H A DInputStreamReader.java174 * @param cbuf Destination buffer
183 public int read(char cbuf[], int offset, int length) throws IOException { argument
184 return sd.read(cbuf, offset, length);
H A DPipedWriter.java136 * @param cbuf the data.
144 public void write(char cbuf[], int off, int len) throws IOException { argument
147 } else if ((off | len | (off + len) | (cbuf.length - (off + len))) < 0) {
150 sink.receive(cbuf, off, len);
H A DOutputStreamWriter.java200 * @param cbuf Buffer of characters
206 public void write(char cbuf[], int off, int len) throws IOException { argument
207 se.write(cbuf, off, len);
H A DReader.java99 char[] cbuf = new char[len];
100 int n = read(cbuf, 0, len);
102 target.put(cbuf, 0, n);
131 * @param cbuf Destination buffer
139 public int read(char cbuf[]) throws IOException { argument
140 return read(cbuf, 0, cbuf.length);
148 * @param cbuf Destination buffer
157 abstract public int read(char cbuf[], int off, int len) throws IOException; argument
H A DStringReader.java79 * @param cbuf Destination buffer
88 public int read(char cbuf[], int off, int len) throws IOException { argument
91 if ((off < 0) || (off > cbuf.length) || (len < 0) ||
92 ((off + len) > cbuf.length) || ((off + len) < 0)) {
100 str.getChars(next, next + n, cbuf, off);
H A DStringWriter.java83 * @param cbuf Array of characters
87 public void write(char cbuf[], int off, int len) { argument
88 if ((off < 0) || (off > cbuf.length) || (len < 0) ||
89 ((off + len) > cbuf.length) || ((off + len) < 0)) {
94 buf.append(cbuf, off, len);
H A DWriter.java120 * @param cbuf
126 public void write(char cbuf[]) throws IOException { argument
127 write(cbuf, 0, cbuf.length);
133 * @param cbuf
145 abstract public void write(char cbuf[], int off, int len) throws IOException; argument
182 char cbuf[];
187 cbuf = writeBuffer;
189 cbuf = new char[len];
191 str.getChars(off, (off + len), cbuf,
[all...]
H A DBufferedWriter.java167 * @param cbuf A character array
173 public void write(char cbuf[], int off, int len) throws IOException { argument
176 if ((off < 0) || (off > cbuf.length) || (len < 0) ||
177 ((off + len) > cbuf.length) || ((off + len) < 0)) {
188 out.write(cbuf, off, len);
195 System.arraycopy(cbuf, b, cb, nextChar, d);
H A DLineNumberReader.java147 * @param cbuf
162 public int read(char cbuf[], int off, int len) throws IOException { argument
164 int n = super.read(cbuf, off, len);
167 int c = cbuf[i];
H A DPipedReader.java280 * @param cbuf the buffer into which the data is read.
291 public synchronized int read(char cbuf[], int off, int len) throws IOException { argument
301 if ((off < 0) || (off > cbuf.length) || (len < 0) ||
302 ((off + len) > cbuf.length) || ((off + len) < 0)) {
313 cbuf[off] = (char)c;
316 cbuf[off + rlen] = buffer[out++];
H A DPushbackReader.java97 * @param cbuf Destination buffer
106 public int read(char cbuf[], int off, int len) throws IOException { argument
113 } else if ((off < 0) || (off > cbuf.length)) {
122 System.arraycopy(buf, pos, cbuf, off, avail);
128 len = super.read(cbuf, off, len);
163 * character to be read will have the value <code>cbuf[off]</code>, the
164 * character after that will have the value <code>cbuf[off+1]</code>, and
167 * @param cbuf Character array
174 public void unread(char cbuf[], int off, int len) throws IOException { argument
180 System.arraycopy(cbuf, of
195 unread(char cbuf[]) argument
[all...]
H A DBufferedReader.java195 private int read1(char[] cbuf, int off, int len) throws IOException { argument
203 return in.read(cbuf, off, len);
219 System.arraycopy(cb, nextChar, cbuf, off, n);
260 * @param cbuf Destination buffer
269 public int read(char cbuf[], int off, int len) throws IOException { argument
272 if ((off < 0) || (off > cbuf.length) || (len < 0) ||
273 ((off + len) > cbuf.length) || ((off + len) < 0)) {
279 int n = read1(cbuf, off, len);
282 int n1 = read1(cbuf, off + n, len - n);
H A DConsole.java419 public int read(char cbuf[], int offset, int length) argument
424 if (offset < 0 || offset > cbuf.length || length < 0 ||
425 end < 0 || end > cbuf.length) {
455 if (leftoverLF && cbuf == rcb && cb[nextChar] == '\n') {
464 c = cbuf[off++] = cb[nextChar];
474 if (cbuf == rcb) {
475 cbuf = grow();
476 end = cbuf.length;
494 cbuf[off++] = '\n';
499 if (cbuf
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/gui/
H A DTypeScriptWriter.java48 public void write(char[] cbuf, int off, int len) throws IOException { argument
49 script.append(String.valueOf(cbuf, off, len));
/openjdk7/jdk/test/java/io/BufferedReader/
H A DFill.java51 public int read(char[] cbuf, int off, int len) throws IOException { argument
54 cbuf[i] = next++;
74 char[] cbuf = new char[8];
76 int n1 = r.read(cbuf);
77 int n2 = r.read(cbuf);
80 if (n1 != cbuf.length)
82 if (n2 != cbuf.length)
/openjdk7/jdk/test/java/io/Writer/
H A DWriteFromString.java86 * @param cbuf Array of characters
90 public void write(char cbuf[], int off, int len) { argument
91 if ((off < 0) || (off > cbuf.length) || (len < 0) ||
92 ((off + len) > cbuf.length) || ((off + len) < 0)) {
97 buf.append(cbuf, off, len);
/openjdk7/jaxp/src/com/sun/xml/internal/stream/writers/
H A DUTF8OutputStreamWriter.java112 public void write(char cbuf[]) throws IOException { argument
113 for (int i = 0; i < cbuf.length; i++) {
114 write(cbuf[i]);
118 public void write(char cbuf[], int off, int len) throws IOException { argument
120 write(cbuf[off + i]);
H A DXMLWriter.java98 * @param cbuf Array of characters to be written
103 public void write(char cbuf[]) throws IOException { argument
104 write(cbuf, 0, cbuf.length);
110 * @param cbuf Array of characters
117 public void write(char cbuf[], int off, int len) throws IOException{ argument
125 writer.write(cbuf, off, len);
127 buffer.append(cbuf, off, len);
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/
H A DXMLWriter.java52 public void write(char[] cbuf, int off, int len) throws IOException { argument
54 char c = cbuf[i];
/openjdk7/jdk/test/sun/text/resources/
H A DLocaleDataTest.java397 public int read(char[] cbuf, int start, int len) throws IOException { argument
404 cbuf[p++] = (char)c;
436 public void write(char[] cbuf, int off, int len) throws IOException { argument
439 write(cbuf[off++]);
/openjdk7/jdk/src/share/classes/sun/rmi/rmic/
H A DIndentingWriter.java110 public void write(char[] cbuf, int off, int len) throws IOException { argument
114 super.write(cbuf, off, len);
/openjdk7/jdk/src/share/classes/sun/rmi/rmic/newrmic/
H A DIndentingWriter.java102 public void write(char[] cbuf, int off, int len) throws IOException { argument
106 super.write(cbuf, off, len);

Completed in 105 milliseconds

12