/openjdk7/jdk/src/share/classes/sun/reflect/ |
H A D | ClassDefiner.java | 54 static Class defineClass(String name, byte[] bytes, int off, int len, argument 63 return unsafe.defineClass(name, bytes, off, len, newLoader, null);
|
/openjdk7/jdk/src/share/classes/sun/rmi/log/ |
H A D | LogInputStream.java | 78 * @param off the start offset of the data 84 public int read(byte b[], int off, int len) throws IOException { argument 88 int n = in.read(b, off, len);
|
/openjdk7/jdk/src/share/classes/sun/rmi/transport/proxy/ |
H A D | HttpSendOutputStream.java | 76 * @param off the start offset of the data 79 public void write(byte b[], int off, int len) throws IOException argument 85 out.write(b, off, len);
|
/openjdk7/jdk/test/sun/nio/cs/ |
H A D | TestStringCodingUTF8.java | 63 // randomed "off" and "len" on shuffled data 68 int off = rnd.nextInt(bmpsupp.length - maxlen); 70 test(cs, bmpsupp, off, len); 89 static void test(Charset cs, char[] ca, int off, int len) throws Throwable { argument 90 String str = new String(ca, off, len); 91 byte[] ba = encode(cs, ca, off, len); 113 static char[] decode(Charset cs, byte[] ba, int off, int len) { argument 123 ByteBuffer bb = ByteBuffer.wrap(ba, off, len); 139 static byte[] encode(Charset cs, char[] ca, int off, int len) { argument 149 CharBuffer cb = CharBuffer.wrap(ca, off, le [all...] |
/openjdk7/jaxp/src/com/sun/xml/internal/stream/writers/ |
H A D | UTF8OutputStreamWriter.java | 118 public void write(char cbuf[], int off, int len) throws IOException { argument 120 write(cbuf[off + i]); 131 public void write(String str, int off, int len) throws IOException { argument 133 write(str.charAt(off + i));
|
/openjdk7/jdk/src/share/classes/javax/sound/midi/ |
H A D | MetaMessage.java | 232 private void writeVarInt(byte[] data, int off, long value) { argument 238 data[off++]=(byte) (((value & (mask << shift)) >> shift) | 0x80); 241 data[off] = (byte) (value & mask);
|
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | ProgressMonitorInputStream.java | 144 int off, 146 int nr = in.read(b, off, len); 143 read(byte b[], int off, int len) argument
|
/openjdk7/jdk/src/share/classes/java/io/ |
H A D | Bits.java | 39 static boolean getBoolean(byte[] b, int off) { argument 40 return b[off] != 0; 43 static char getChar(byte[] b, int off) { argument 44 return (char) ((b[off + 1] & 0xFF) + 45 (b[off] << 8)); 48 static short getShort(byte[] b, int off) { argument 49 return (short) ((b[off + 1] & 0xFF) + 50 (b[off] << 8)); 53 static int getInt(byte[] b, int off) { argument 54 return ((b[off 60 getFloat(byte[] b, int off) argument 64 getLong(byte[] b, int off) argument 75 getDouble(byte[] b, int off) argument 84 putBoolean(byte[] b, int off, boolean val) argument 88 putChar(byte[] b, int off, char val) argument 93 putShort(byte[] b, int off, short val) argument 98 putInt(byte[] b, int off, int val) argument 105 putFloat(byte[] b, int off, float val) argument 109 putLong(byte[] b, int off, long val) argument 120 putDouble(byte[] b, int off, double val) argument [all...] |
H A D | ByteArrayInputStream.java | 157 * are copied into <code>b[off]</code> through 158 * <code>b[off+k-1]</code> in the manner performed 166 * @param off the start offset in the destination array <code>b</code> 172 * @exception IndexOutOfBoundsException If <code>off</code> is negative, 174 * <code>b.length - off</code> 176 public synchronized int read(byte b[], int off, int len) { argument 179 } else if (off < 0 || len < 0 || len > b.length - off) { 194 System.arraycopy(buf, pos, b, off, len);
|
H A D | DataOutput.java | 82 * is thrown. If <code>off</code> is negative, 83 * or <code>len</code> is negative, or <code>off+len</code> 88 * byte <code>b[off]</code> is written first, 89 * then <code>b[off+1]</code>, and so on; the 90 * last byte written is <code>b[off+len-1]</code>. 93 * @param off the start offset in the data. 97 void write(byte b[], int off, int len) throws IOException; argument
|
H A D | LineNumberInputStream.java | 121 * @param off the start offset of the data. 129 public int read(byte b[], int off, int len) throws IOException { argument 132 } else if ((off < 0) || (off > b.length) || (len < 0) || 133 ((off + len) > b.length) || ((off + len) < 0)) { 143 b[off] = (byte)c; 153 b[off + i] = (byte)c;
|
H A D | OutputStreamWriter.java | 201 * @param off Offset from which to start writing characters 206 public void write(char cbuf[], int off, int len) throws IOException { argument 207 se.write(cbuf, off, len); 214 * @param off Offset from which to start writing characters 219 public void write(String str, int off, int len) throws IOException { argument 220 se.write(str, off, len);
|
H A D | Reader.java | 149 * @param off Offset at which to start storing characters 157 abstract public int read(char cbuf[], int off, int len) throws IOException; argument
|
H A D | StringReader.java | 80 * @param off Offset at which to start writing characters 88 public int read(char cbuf[], int off, int len) throws IOException { argument 91 if ((off < 0) || (off > cbuf.length) || (len < 0) || 92 ((off + len) > cbuf.length) || ((off + len) < 0)) { 100 str.getChars(next, next + n, cbuf, off);
|
H A D | StringWriter.java | 84 * @param off Offset from which to start writing characters 87 public void write(char cbuf[], int off, int len) { argument 88 if ((off < 0) || (off > cbuf.length) || (len < 0) || 89 ((off + len) > cbuf.length) || ((off + len) < 0)) { 94 buf.append(cbuf, off, len); 108 * @param off Offset from which to start writing characters 111 public void write(String str, int off, int len) { argument 112 buf.append(str.substring(off, of [all...] |
H A D | Writer.java | 136 * @param off 145 abstract public void write(char cbuf[], int off, int len) throws IOException; argument 166 * @param off 173 * If <tt>off</tt> is negative, or <tt>len</tt> is negative, 174 * or <tt>off+len</tt> is negative or greater than the length 180 public void write(String str, int off, int len) throws IOException { argument 191 str.getChars(off, (off + len), cbuf, 0);
|
/openjdk7/jdk/src/share/classes/java/net/ |
H A D | SocketOutputStream.java | 85 * @param off the start offset in the data 89 private native void socketWrite0(FileDescriptor fd, byte[] b, int off, argument 96 * @param off the start offset in the data 100 private void socketWrite(byte b[], int off, int len) throws IOException { argument 102 if (len <= 0 || off < 0 || off + len > b.length) { 113 socketWrite0(fd, b, off, len); 154 * @param off the start offset in the data 158 public void write(byte b[], int off, int len) throws IOException { argument 159 socketWrite(b, off, le [all...] |
/openjdk7/jdk/src/share/classes/java/security/ |
H A D | SecureClassLoader.java | 120 * positions <code>off</code> through <code>off+len-1</code> 123 * @param off the start offset in <code>b</code> of the class data 129 * @exception IndexOutOfBoundsException if either <code>off</code> or 131 * <code>off+len</code> is greater than <code>b.length</code>. 139 byte[] b, int off, int len, 142 return defineClass(name, b, off, len, getProtectionDomain(cs)); 138 defineClass(String name, byte[] b, int off, int len, CodeSource cs) argument
|
/openjdk7/jdk/src/share/classes/java/util/jar/ |
H A D | JarOutputStream.java | 137 private static int get16(byte[] b, int off) { argument 138 return (b[off] & 0xff) | ((b[off+1] & 0xff) << 8); 145 private static void set16(byte[] b, int off, int value) { argument 146 b[off+0] = (byte)value; 147 b[off+1] = (byte)(value >> 8);
|
/openjdk7/jdk/src/share/classes/java/util/zip/ |
H A D | DeflaterOutputStream.java | 195 * @param off the start offset of the data 199 public void write(byte[] b, int off, int len) throws IOException { argument 203 if ((off | len | (off + len) | (b.length - (off + len))) < 0) { 209 def.setInput(b, off, len);
|
H A D | InflaterOutputStream.java | 212 * @param off starting offset of the compressed data within {@code b} 214 * @throws IndexOutOfBoundsException if {@code off} < 0, or if 215 * {@code len} < 0, or if {@code len} > {@code b.length - off} 221 public void write(byte[] b, int off, int len) throws IOException { argument 226 } else if (off < 0 || len < 0 || len > b.length - off) { 246 inf.setInput(b, off, part); 247 off += part;
|
/openjdk7/jdk/src/share/classes/javax/imageio/stream/ |
H A D | FileImageInputStream.java | 114 public int read(byte[] b, int off, int len) throws IOException { argument 117 int nbytes = raf.read(b, off, len);
|
H A D | FileImageOutputStream.java | 106 public int read(byte[] b, int off, int len) throws IOException { argument 109 int nbytes = raf.read(b, off, len); 122 public void write(byte[] b, int off, int len) throws IOException { argument 124 raf.write(b, off, len);
|
H A D | MemoryCacheImageOutputStream.java | 76 public int read(byte[] b, int off, int len) throws IOException { argument 83 if (off < 0 || len < 0 || off + len > b.length || off + len < 0) { 85 ("off < 0 || len < 0 || off+len > b.length || off+len < 0!"); 105 cache.read(b, off, len, streamPos); 116 public void write(byte[] b, int off, int len) throws IOException { argument 118 cache.write(b, off, le [all...] |
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | WaveFloatFileWriter.java | 103 public void write(byte[] b, int off, int len) throws IOException { argument 104 out.write(b, off, len);
|