Lines Matching refs:buf
351 private CharBuffer buf;
580 buf = CharBuffer.allocate(BUFFER_SIZE);
581 buf.limit(0);
582 matcher = delimPattern.matcher(buf);
839 if (buf.limit() == buf.capacity())
843 int p = buf.position();
844 buf.position(buf.limit());
845 buf.limit(buf.capacity());
849 n = source.read(buf);
864 buf.limit(buf.position());
865 buf.position(p);
874 buf.position(offset);
877 buf.compact();
880 buf.flip();
884 int newSize = buf.capacity() * 2;
886 newBuf.put(buf);
890 buf = newBuf;
891 matcher.reset(buf);
906 if ((sourceClosed) && (position == buf.limit()))
918 matcher.region(position, buf.limit());
925 if (position == buf.limit())
952 matcher.region(position, buf.limit());
967 if (position == buf.limit()) {
980 matcher.region(position, buf.limit());
1026 matcher.region(position, buf.limit());
1047 int bufferLimit = buf.limit();
1093 matcher.region(position, buf.limit());
1649 endPosition = buf.limit();