Home | History | Annotate | Download | only in util

Lines Matching refs:buffer

52     private char[] buffer;
58 throw new IllegalArgumentException("Buffer capacity may not be negative");
60 this.buffer = new char[capacity];
64 char newbuffer[] = new char[Math.max(this.buffer.length << 1, newlen)];
65 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len);
66 this.buffer = newbuffer;
81 if (newlen > this.buffer.length) {
84 System.arraycopy(b, off, this.buffer, this.len, len);
94 if (newlen > this.buffer.length) {
97 str.getChars(0, strlen, this.buffer, this.len);
105 append(b.buffer, off, len);
112 append(b.buffer,0, b.len);
117 if (newlen > this.buffer.length) {
120 this.buffer[this.len] = ch;
137 if (newlen > this.buffer.length) {
145 this.buffer[i2] = (char) ch;
154 append(b.buffer(), off, len);
168 System.arraycopy(this.buffer, 0, b, 0, this.len);
174 return this.buffer[i];
177 public char[] buffer() {
178 return this.buffer;
182 return this.buffer.length;
190 int available = this.buffer.length - this.len;
197 if (len < 0 || len > this.buffer.length) {
208 return this.len == this.buffer.length;
222 if (this.buffer[i] == ch) {
243 return new String(this.buffer, beginIndex, endIndex - beginIndex);
256 while (beginIndex < endIndex && HTTP.isWhitespace(this.buffer[beginIndex])) {
259 while (endIndex > beginIndex && HTTP.isWhitespace(this.buffer[endIndex - 1])) {
262 return new String(this.buffer, beginIndex, endIndex - beginIndex);
266 return new String(this.buffer, 0, this.len);