Searched refs:off (Results 51 - 75 of 571) sorted by relevance

1234567891011>>

/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/org/objectweb/asm/
H A DType.java193 private final int off; field in class:Type
219 * @param off the offset of this descriptor in the previous buffer.
222 private Type(final int sort, final char[] buf, final int off, final int len) argument
226 this.off = off;
293 int off = 1;
296 char car = buf[off++];
300 while (buf[off++] != ';') {
308 off = 1;
310 while (buf[off] !
367 getType(final char[] buf, final int off) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DChannelInputStream.java87 public synchronized int read(byte[] bs, int off, int len) argument
90 if ((off < 0) || (off > bs.length) || (len < 0) ||
91 ((off + len) > bs.length) || ((off + len) < 0)) {
99 bb.limit(Math.min(off + len, bb.capacity()));
100 bb.position(off);
/openjdk7/jdk/src/share/classes/sun/nio/cs/
H A DCharsetMapping.java209 int off = 0;
211 int n = in.read(bb, off, N);
215 off += n;
220 int off = 0; field in class:CharsetMapping
224 int size = ((bb[off++]&0xff)<<8) | (bb[off++]&0xff);
227 cc[i] = (char)(((bb[off++]&0xff)<<8) | (bb[off++]&0xff));
271 b1MinDB1 = ((bb[off++]&0xff)<<8) | (bb[off
[all...]
/openjdk7/jdk/src/share/classes/javax/imageio/stream/
H A DImageOutputStreamImpl.java54 public abstract void write(byte b[], int off, int len) throws IOException; argument
201 public void writeShorts(short[] s, int off, int len) throws IOException { argument
202 // Fix 4430357 - if off + len < 0, overflow occurred
203 if (off < 0 || len < 0 || off + len > s.length || off + len < 0) {
205 ("off < 0 || len < 0 || off + len > s.length!");
212 short v = s[off + i];
218 short v = s[off
227 writeChars(char[] c, int off, int len) argument
253 writeInts(int[] i, int off, int len) argument
283 writeLongs(long[] l, int off, int len) argument
321 writeFloats(float[] f, int off, int len) argument
351 writeDoubles(double[] d, int off, int len) argument
[all...]
/openjdk7/jdk/src/share/native/java/io/
H A Dio_util.c67 outOfBounds(JNIEnv *env, jint off, jint len, jbyteArray array) { argument
68 return ((off < 0) ||
72 ((*env)->GetArrayLength(env, array) - off < len));
77 jint off, jint len, jfieldID fid)
89 if (outOfBounds(env, off, len, bytes)) {
113 (*env)->SetByteArrayRegion(env, bytes, off, nread, (jbyte *)buf);
153 jint off, jint len, jboolean append, jfieldID fid)
165 if (outOfBounds(env, off, len, bytes)) {
182 (*env)->GetByteArrayRegion(env, bytes, off, len, (jbyte *)buf);
185 off
76 readBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off, jint len, jfieldID fid) argument
152 writeBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off, jint len, jboolean append, jfieldID fid) argument
[all...]
/openjdk7/jdk/src/share/classes/java/io/
H A DCharArrayWriter.java92 * @param off the start offset in the data
95 public void write(char c[], int off, int len) { argument
96 if ((off < 0) || (off > c.length) || (len < 0) ||
97 ((off + len) > c.length) || ((off + len) < 0)) {
107 System.arraycopy(c, off, buf, count, len);
115 * @param off Offset from which to start reading characters
118 public void write(String str, int off, int len) { argument
124 str.getChars(off, of
[all...]
H A DPipedReader.java205 synchronized void receive(char c[], int off, int len) throws IOException { argument
207 receive(c[off++]);
281 * @param off the start offset of the data.
291 public synchronized int read(char cbuf[], int off, int len) throws IOException { argument
301 if ((off < 0) || (off > cbuf.length) || (len < 0) ||
302 ((off + len) > cbuf.length) || ((off + len) < 0)) {
313 cbuf[off] = (char)c;
316 cbuf[off
[all...]
H A DByteArrayOutputStream.java129 * starting at offset <code>off</code> to this byte array output stream.
132 * @param off the start offset in the data.
135 public synchronized void write(byte b[], int off, int len) { argument
136 if ((off < 0) || (off > b.length) || (len < 0) ||
137 ((off + len) - b.length > 0)) {
141 System.arraycopy(b, off, buf, count, len);
H A DInputStream.java119 * <p> The first byte read is stored into element <code>b[off]</code>, the
120 * next one into <code>b[off+1]</code>, and so on. The number of bytes read
123 * <code>b[off]</code> through <code>b[off+</code><i>k</i><code>-1]</code>,
124 * leaving elements <code>b[off+</code><i>k</i><code>]</code> through
125 * <code>b[off+len-1]</code> unaffected.
128 * <code>b[off]</code> and elements <code>b[off+len]</code> through
131 * <p> The <code>read(b,</code> <code>off,</code> <code>len)</code> method
135 * the <code>read(b,</code> <code>off,</cod
161 read(byte b[], int off, int len) argument
[all...]
H A DPipedWriter.java129 * starting at offset <code>off</code> to this piped output stream.
137 * @param off the start offset in the data.
144 public void write(char cbuf[], int off, int len) throws IOException { argument
147 } else if ((off | len | (off + len) | (cbuf.length - (off + len))) < 0) {
150 sink.receive(cbuf, off, len);
H A DSequenceInputStream.java187 * @param off the start offset in array <code>b</code>
192 * @exception IndexOutOfBoundsException If <code>off</code> is negative,
194 * <code>b.length - off</code>
197 public int read(byte b[], int off, int len) throws IOException { argument
202 } else if (off < 0 || len < 0 || len > b.length - off) {
208 int n = in.read(b, off, len);
211 return read(b, off, len);
H A DBufferedOutputStream.java102 * starting at offset <code>off</code> to this buffered output stream.
112 * @param off the start offset in the data.
116 public synchronized void write(byte b[], int off, int len) throws IOException { argument
122 out.write(b, off, len);
128 System.arraycopy(b, off, buf, count, len);
H A DCharArrayReader.java113 * @param off Offset at which to start storing characters
120 public int read(char b[], int off, int len) throws IOException { argument
123 if ((off < 0) || (off > b.length) || (len < 0) ||
124 ((off + len) > b.length) || ((off + len) < 0)) {
139 System.arraycopy(buf, pos, b, off, len);
/openjdk7/jdk/test/java/io/readBytes/
H A DReadBytesBounds.java34 * The test calls the read(byte buf[] , int off , int len) of
35 * FileInputStream with different values of off and len to see if the
84 static void testRead(int off, int len, boolean expected) throws Throwable { argument
85 System.err.printf("off=%d len=%d expected=%b%n", off, len, expected);
88 fis.read(b, off, len);
89 raf.read(b, off, len);
97 (String.format("Unexpected result off=%d len=%d expected=%b",
98 off, len, expected));
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DAppOutputStream.java59 synchronized public void write(byte b[], int off, int len) argument
63 } else if (off < 0 || len < 0 || len > b.length - off) {
118 r.write(b, off, howmuch);
119 off += howmuch;
/openjdk7/hotspot/src/share/vm/adlc/
H A Dfilebuff.cpp95 int off, int len)
96 : _bfr(bufr), _sol(soln), _line(ln), _offset(off), _length(len) {
162 static int expandtab( ostream &os, int off, char c, char fill1, char fill2 ) { argument
165 while( (++off) & 7 ); // Expand to tab stop
168 off++; // Increment "cursor" offset
170 return off;
182 int off = 0; // Cursor offset for tab expansion local
186 off = expandtab(os,off,c,' ',c);
191 off
94 FileBuffRegion( FileBuff* bufr, int soln, int ln, int off, int len) argument
[all...]
/openjdk7/jdk/src/share/classes/java/security/
H A DDigestInputStream.java44 * <p>It is possible to turn this stream on or off (see
47 * results in an update on the message digest. But when it is off,
68 /* Are we on or off? */
135 * <code>b</code>, starting at offset <code>off</code>. This method
144 * @param off the starting offset into <code>b</code> of where the
148 * stream into b, starting at offset <code>off</code>.
160 public int read(byte[] b, int off, int len) throws IOException { argument
161 int result = in.read(b, off, len);
163 digest.update(b, off, result);
169 * Turns the digest function on or off
[all...]
H A DDigestOutputStream.java44 * <p>It is possible to turn this stream on or off (see
47 * an update on the message digest. But when it is off, the message
134 * @param off the offset into <code>b</code> of the first byte to
138 * from <code>b</code>, starting at offset <code>off</code>.
144 public void write(byte[] b, int off, int len) throws IOException { argument
146 digest.update(b, off, len);
148 out.write(b, off, len);
152 * Turns the digest function on or off. The default is on. When
154 * update on the message digest. But when it is off, the message
158 * off
[all...]
/openjdk7/jdk/src/share/classes/java/util/zip/
H A DCheckedInputStream.java71 * @param off the start offset in the destination array <code>b</code>
76 * @exception IndexOutOfBoundsException If <code>off</code> is negative,
78 * <code>buf.length - off</code>
81 public int read(byte[] buf, int off, int len) throws IOException { argument
82 len = in.read(buf, off, len);
84 cksum.update(buf, off, len);
H A DAdler32.java62 public void update(byte[] b, int off, int len) { argument
66 if (off < 0 || len < 0 || off > b.length - len) {
69 adler = updateBytes(adler, b, off, len);
136 private native static int updateBytes(int adler, byte[] b, int off, argument
139 int off, int len);
138 updateByteBuffer(int adler, long addr, int off, int len) argument
/openjdk7/jdk/test/java/nio/channels/Channels/
H A DBasic2.java93 int len, off;
96 off = 0;
100 off = rand.nextInt(64);
101 n = in.read(buf, off, len);
108 int value = buf[off + i];
140 int off, len;
144 off = 0;
147 off = rand.nextInt(buf.length);
148 int r = buf.length - off;
153 buf[off
[all...]
/openjdk7/jdk/src/share/classes/sun/tracing/dtrace/
H A DJVM.java59 ClassLoader loader, String name, byte[] b, int off, int len) {
60 return defineClass0(loader, name, b, off, len);
69 ClassLoader loader, String name, byte[] b, int off, int len);
58 defineClass( ClassLoader loader, String name, byte[] b, int off, int len) argument
68 defineClass0( ClassLoader loader, String name, byte[] b, int off, int len) argument
/openjdk7/jdk/src/share/classes/sun/net/
H A DTelnetOutputStream.java127 * Write the bytes at offset <i>off</i> in buffer <i>bytes</i> for
130 public void write(byte bytes[], int off, int length) throws IOException { argument
132 super.write(bytes, off, length);
137 write(bytes[off++]);
/openjdk7/jdk/src/share/classes/sun/net/www/http/
H A DHttpCaptureInputStream.java69 public int read(byte[] b, int off, int len) throws IOException { argument
70 int ret = super.read(b, off, len);
72 capture.received(b[off+i]);
H A DHttpCaptureOutputStream.java58 public void write(byte[] b, int off, int len) throws IOException { argument
59 for (int i = off; i < len; i++) {
62 out.write(b, off, len);

Completed in 151 milliseconds

1234567891011>>