Lines Matching defs:buf
112 byte[] buf = new byte[8192];
114 while((len=in.read(buf)) != -1) {
115 fileOut.write(buf, 0, len);
148 private void add(byte[] buf, int len) {
150 tail = tail.createNext(buf, 0, len);
152 head = tail = new Chunk(buf, 0, len);
168 byte[] buf = new byte[8192];
169 int read = fill(in, buf);
172 add(buf, read);
173 if (read != buf.length)
180 private int fill(InputStream in, byte[] buf) throws IOException {
183 while(total < buf.length && (read=in.read(buf, total, buf.length-total)) != -1) {
193 return (head.buf[curOff++] & 0xff);
202 System.arraycopy(head.buf,curOff,b,off,sz);
224 final byte[] buf;
228 public Chunk(byte[] buf, int off, int len) {
229 this.buf = buf;
234 public Chunk createNext(byte[] buf, int off, int len) {
235 return next = new Chunk(buf, off, len);