/openjdk7/jdk/test/sun/net/www/protocol/http/ |
H A D | ResponseCacheStream.java | 55 private OutputStream buf = null; field in class:ResponseCacheStream.MyCacheRequest 58 buf = out; 62 return buf; 76 private ByteArrayOutputStream buf = new ByteArrayOutputStream(1024); field in class:ResponseCacheStream.MyResponseCache 82 return new MyCacheRequest(buf); 90 return buf.toByteArray();
|
/openjdk7/jdk/src/share/classes/sun/misc/ |
H A D | HexDumpEncoder.java | 91 protected void encodeAtom(OutputStream o, byte buf[], int off, int len) throws IOException { argument 92 thisLine[currentByte] = buf[off]; 93 hexDigit(pStream, buf[off]);
|
/openjdk7/jdk/src/share/classes/sun/net/httpserver/ |
H A D | ChunkedOutputStream.java | 59 private byte[] buf = new byte [CHUNK_SIZE+OFFSET+2]; field in class:ChunkedOutputStream 71 buf [pos++] = (byte)b; 85 System.arraycopy (b,off,buf,pos,remain); 91 System.arraycopy (b,off,buf,OFFSET,CHUNK_SIZE); 99 System.arraycopy (b,off,buf,pos,len); 119 buf[startByte+i] = (byte)c[i]; 121 buf[startByte + (i++)] = '\r'; 122 buf[startByte + (i++)] = '\n'; 123 buf[startByte + (i++) + count] = '\r'; 124 buf[startByt [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/serializer/ |
H A D | SerializerTraceWriter.java | 68 private byte buf[]; field in class:SerializerTraceWriter 83 buf = new byte[size + 3]; 122 chars[i] = (char) buf[i]; 191 buf[count++] = (byte) (c); 195 buf[count++] = (byte) (0xc0 + (c >> 6)); 196 buf[count++] = (byte) (0x80 + (c & 0x3f)); 200 buf[count++] = (byte) (0xe0 + (c >> 12)); 201 buf[count++] = (byte) (0x80 + ((c >> 6) & 0x3f)); 202 buf[count++] = (byte) (0x80 + (c & 0x3f)); 250 buf[coun [all...] |
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/encoding/ |
H A D | EncapsInputStream.java | 64 public EncapsInputStream(org.omg.CORBA.ORB orb, byte[] buf, argument 67 super(orb, ByteBuffer.wrap(buf), size, littleEndian,
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/ |
H A D | SignatureConverter.java | 30 private StringBuffer buf; field in class:SignatureConverter 33 public SignatureConverter(Symbol sig, StringBuffer buf) { argument 35 this.buf = buf; 38 public void doBool () { appendComma(); buf.append("boolean"); } 39 public void doChar () { appendComma(); buf.append("char"); } 40 public void doFloat () { appendComma(); buf.append("float"); } 41 public void doDouble() { appendComma(); buf.append("double"); } 42 public void doByte () { appendComma(); buf.append("byte"); } 43 public void doShort () { appendComma(); buf [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/tools/jcore/ |
H A D | ByteCodeRewriter.java | 88 static private void writeShort(byte[] buf, int index, short value) { argument 89 buf[index] = (byte) ((value >> 8) & 0x00FF); 90 buf[index + 1] = (byte) (value & 0x00FF);
|
/openjdk7/jdk/src/share/classes/javax/sql/rowset/serial/ |
H A D | SerialBlob.java | 62 private byte buf[]; field in class:SerialBlob 101 buf = new byte[(int)len]; 103 buf[i] = b[i]; 136 buf = blob.getBytes(1, (int)len ); 179 b[i] = this.buf[(int)pos]; 209 InputStream stream = new ByteArrayInputStream(buf); 244 if (pattern[i] == buf[pos]) { 249 } else if (pattern[i] != buf[pos]) { 358 this.buf[(int)pos + i] = bytes[offset + i ]; 410 buf [all...] |
H A D | SerialClob.java | 57 private char buf[]; field in class:SerialClob 102 buf = new char[(int)len]; 104 buf[i] = ch[i]; 144 buf = new char[(int)len]; 165 read = reader.read(buf, offset, (int)(len - offset)); 199 return (java.io.Reader) new CharArrayReader(buf); 263 return new String(buf, (int)pos - 1, length); 307 if (pattern[i] == buf[pos]) { 313 } else if (pattern[i] != buf[pos]) { 413 this.buf[(in [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/text/rtf/ |
H A D | AbstractFilter.java | 96 byte buf[]; 99 buf = new byte[16384]; 102 count = in.read(buf); 106 this.write(buf, 0, count); 113 char buf[]; 116 buf = new char[2048]; 119 count = in.read(buf); 123 this.write(buf[i]); 160 public void write(byte[] buf, int off, int len) argument 165 short b = (short)buf[of [all...] |
/openjdk7/jdk/src/share/classes/sun/awt/image/ |
H A D | JPEGImageDecoder.java | 68 private native void readImage(InputStream is, byte buf[]) argument
|
/openjdk7/jdk/src/share/classes/java/io/ |
H A D | BufferedInputStream.java | 60 protected volatile byte buf[]; field in class:BufferedInputStream 63 * Atomic updater to provide compareAndSet for buf. This is 65 * of buf[] as primary indicator that this stream is closed. (The 71 (BufferedInputStream.class, byte[].class, "buf"); 77 * in the range <code>0</code> through <code>buf.length</code>; 78 * elements <code>buf[0]</code> through <code>buf[count-1] 86 * character to be read from the <code>buf</code> array. 90 * than <code>count</code>, then <code>buf[pos]</code> 97 * @see java.io.BufferedInputStream#buf [all...] |
H A D | ByteArrayOutputStream.java | 50 protected byte buf[]; field in class:ByteArrayOutputStream 77 buf = new byte[size]; 92 if (minCapacity - buf.length > 0) 104 int oldCapacity = buf.length; 113 buf = Arrays.copyOf(buf, newCapacity); 123 buf[count] = (byte) b; 141 System.arraycopy(b, off, buf, count, len); 148 * stream's write method using <code>out.write(buf, 0, count)</code>. 154 out.write(buf, [all...] |
H A D | CharArrayReader.java | 37 protected char buf[]; field in class:CharArrayReader 53 * @param buf Input buffer (not copied) 55 public CharArrayReader(char buf[]) { argument 56 this.buf = buf; 58 this.count = buf.length; 67 * <tt>buf.length-offset</tt>, whichever is smaller. 71 * <tt>buf.length</tt>, or if <tt>length</tt> is negative, or if 74 * @param buf Input buffer (not copied) 78 public CharArrayReader(char buf[], in argument [all...] |
H A D | CharArrayWriter.java | 47 protected char buf[]; field in class:CharArrayWriter 72 buf = new char[initialSize]; 81 if (newcount > buf.length) { 82 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount)); 84 buf[count] = (char)c; 104 if (newcount > buf.length) { 105 buf = Arrays.copyOf(buf, Mat [all...] |
H A D | PushbackInputStream.java | 57 protected byte[] buf; field in class:PushbackInputStream 62 * <code>buf.length</code>; when the buffer is full, <code>pos</code> is 96 this.buf = new byte[size]; 136 if (pos < buf.length) { 137 return buf[pos++] & 0xff; 175 int avail = buf.length - pos; 180 System.arraycopy(buf, pos, b, off, avail); 211 buf[--pos] = (byte)b; 235 System.arraycopy(b, off, buf, pos, len); 276 int n = buf [all...] |
H A D | PushbackReader.java | 40 private char[] buf; field in class:PushbackReader 57 this.buf = new char[size]; 72 if (buf == null) 87 if (pos < buf.length) 88 return buf[pos++]; 118 int avail = buf.length - pos; 122 System.arraycopy(buf, pos, cbuf, off, avail); 156 buf[--pos] = (char) c; 180 System.arraycopy(cbuf, off, buf, pos, len); 207 return (pos < buf [all...] |
/openjdk7/jdk/src/share/classes/java/net/ |
H A D | DatagramPacket.java | 58 byte[] buf; field in class:DatagramPacket 70 * <code>buf.length</code>. 72 * @param buf buffer for holding the incoming datagram. 78 public DatagramPacket(byte buf[], int offset, int length) { argument 79 setData(buf, offset, length); 89 * <code>buf.length</code>. 91 * @param buf buffer for holding the incoming datagram. 94 public DatagramPacket(byte buf[], int length) { argument 95 this (buf, 0, length); 103 * <code>buf 114 DatagramPacket(byte buf[], int offset, int length, InetAddress address, int port) argument 137 DatagramPacket(byte buf[], int offset, int length, SocketAddress address) argument 155 DatagramPacket(byte buf[], int length, InetAddress address, int port) argument 173 DatagramPacket(byte buf[], int length, SocketAddress address) argument 259 setData(byte[] buf, int offset, int length) argument 344 setData(byte[] buf) argument [all...] |
/openjdk7/jdk/src/share/classes/java/util/zip/ |
H A D | DeflaterInputStream.java | 49 protected final byte[] buf; field in class:DeflaterInputStream 116 buf = new byte[bufLen]; 189 n = in.read(buf, 0, buf.length); 194 def.setInput(buf, 0, n);
|
H A D | GZIPOutputStream.java | 138 * @param buf the data to be written 143 public synchronized void write(byte[] buf, int off, int len) argument 146 super.write(buf, off, len); 147 crc.update(buf, off, len); 160 int len = def.deflate(buf, 0, buf.length); 161 if (def.finished() && len <= buf.length - TRAILER_SIZE) { 163 writeTrailer(buf, len); 165 out.write(buf, 0, len); 169 out.write(buf, 201 writeTrailer(byte[] buf, int offset) argument 210 writeInt(int i, byte[] buf, int offset) argument 219 writeShort(int s, byte[] buf, int offset) argument [all...] |
H A D | InflaterInputStream.java | 51 protected byte[] buf; field in class:InflaterInputStream 88 buf = new byte[size]; 238 len = in.read(buf, 0, buf.length); 242 inf.setInput(buf, 0, len);
|
/openjdk7/jdk/src/share/classes/javax/imageio/stream/ |
H A D | FileCacheImageInputStream.java | 54 private byte[] buf = new byte[BUFFER_LENGTH]; field in class:FileCacheImageInputStream 142 stream.read(buf, 0, (int)Math.min(len, (long)BUFFER_LENGTH)); 148 cache.write(buf, 0, nbytes);
|
/openjdk7/hotspot/src/share/vm/libadt/ |
H A D | set.cpp | 74 char *buf = NEW_C_HEAP_ARRAY(char,len, mtCompiler);// Some initial string space local 76 register char *s = buf; // Current working string pointer 86 if( buf+len-s < 25 ) { // Generous trailing space for upcoming numbers 87 int offset = (int)(s-buf);// Not enuf space; compute offset into buffer 89 buf = REALLOC_C_HEAP_ARRAY(char,buf,len, mtCompiler); // Reallocate doubled size 90 s = buf+offset; // Get working pointer into new bigger buffer 101 if( buf+len-s < 25 ) { // Generous trailing space for upcoming numbers 102 int offset = (int)(s-buf);// Not enuf space; compute offset into buffer 104 buf [all...] |
/openjdk7/hotspot/src/share/vm/oops/ |
H A D | oop.cpp | 76 char buf[100]; local 77 stringStream st(buf, sizeof(buf));
|
/openjdk7/jdk/src/share/classes/com/sun/jndi/ldap/ |
H A D | BerDecoder.java | 38 private int origOffset; // The start point in buf to decode 43 public BerDecoder(byte buf[], int offset, int bufsize) { argument 45 this.buf = buf; 96 retval = (retval << 8) + (buf[offset++] & 0xff); 140 return buf[offset++] & 0xff; 152 return buf[offset] & 0xff; 190 Integer.toString(buf[offset - 1] & 0xff) + 202 byte fb = buf[offset++]; 208 value |= (buf[offse [all...] |