Home | History | Annotate | Download | only in util

Lines Matching refs:len

118     public void write(char[] buf, int off, int len) {
119 while (bufferIndex + len > bufferSize) {
141 len -= nextNewLine + 1;
154 len -= rest;
159 if (len > 0) {
161 appendToBuffer(buf, off, len);
162 for (int i = len - 1; i >= 0; i--) {
164 lastNewline = bufferIndex - len + i;
172 public void write(String s, int off, int len) {
173 while (bufferIndex + len > bufferSize) {
195 len -= nextNewLine + 1;
208 len -= rest;
213 if (len > 0) {
215 appendToBuffer(s, off, len);
216 for (int i = len - 1; i >= 0; i--) {
218 lastNewline = bufferIndex - len + i;
230 * @param len The number of characters to copy.
232 private void appendToBuffer(char[] buf, int off, int len) {
233 if (bufferIndex + len > buffer.length) {
234 ensureCapacity(bufferIndex + len);
236 System.arraycopy(buf, off, buffer, bufferIndex, len);
237 bufferIndex += len;
245 * @param len The number of characters to copy.
247 private void appendToBuffer(String s, int off, int len) {
248 if (bufferIndex + len > buffer.length) {
249 ensureCapacity(bufferIndex + len);
251 s.getChars(off, off + len, buffer, bufferIndex);
252 bufferIndex += len;