Searched refs:off (Results 26 - 50 of 571) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/javax/imageio/stream/
H A DImageOutputStream.java95 * The byte <code>b[off]</code> is written first, then the byte
96 * <code>b[off + 1]</code>, and so on.
107 * @param off the start offset in the data.
110 * @exception IndexOutOfBoundsException if <code>off</code> is
111 * negative, <code>len</code> is negative, or <code>off +
117 void write(byte b[], int off, int len) throws IOException; argument
442 * The short <code>s[off]</code> is written first, then the short
443 * <code>s[off + 1]</code>, and so on. The byte order of the
453 * @param off the start offset in the data.
456 * @exception IndexOutOfBoundsException if <code>off</cod
463 writeShorts(short[] s, int off, int len) argument
489 writeChars(char[] c, int off, int len) argument
515 writeInts(int[] i, int off, int len) argument
541 writeLongs(long[] l, int off, int len) argument
567 writeFloats(float[] f, int off, int len) argument
593 writeDoubles(double[] d, int off, int len) argument
[all...]
H A DImageInputStream.java130 * them into <code>b</code> starting at index <code>off</code>.
139 * @param off the starting position within <code>b</code> to write to.
147 * @exception IndexOutOfBoundsException if <code>off</code> is
148 * negative, <code>len</code> is negative, or <code>off +
152 int read(byte[] b, int off, int len) throws IOException; argument
211 * an int, masks it with <code>0xff</code> in order to strip off
255 * <code>0xffff</code> in order to strip off any sign-extension
311 * strip off any sign-extension bits, and returns the result as an
501 * into <code>b</code> starting at index <code>off</code>.
509 * @param off th
521 readFully(byte[] b, int off, int len) argument
565 readFully(short[] s, int off, int len) argument
590 readFully(char[] c, int off, int len) argument
615 readFully(int[] i, int off, int len) argument
640 readFully(long[] l, int off, int len) argument
665 readFully(float[] f, int off, int len) argument
690 readFully(double[] d, int off, int len) argument
[all...]
H A DImageInputStreamImpl.java160 * them into <code>b</code> starting at index <code>off</code>.
172 * @param off the starting position within <code>b</code> to write to.
178 * @exception IndexOutOfBoundsException if <code>off</code> is
179 * negative, <code>len</code> is negative, or <code>off +
185 public abstract int read(byte[] b, int off, int len) throws IOException; argument
343 public void readFully(byte[] b, int off, int len) throws IOException { argument
344 // Fix 4430357 - if off + len < 0, overflow occurred
345 if (off < 0 || len < 0 || off + len > b.length || off
364 readFully(short[] s, int off, int len) argument
380 readFully(char[] c, int off, int len) argument
396 readFully(int[] i, int off, int len) argument
412 readFully(long[] l, int off, int len) argument
428 readFully(float[] f, int off, int len) argument
444 readFully(double[] d, int off, int len) argument
460 toShorts(byte[] b, short[] s, int off, int len) argument
479 toChars(byte[] b, char[] c, int off, int len) argument
498 toInts(byte[] b, int[] i, int off, int len) argument
521 toLongs(byte[] b, long[] l, int off, int len) argument
560 toFloats(byte[] b, float[] f, int off, int len) argument
585 toDoubles(byte[] b, double[] d, int off, int len) argument
[all...]
H A DMemoryCacheImageOutputStream.java76 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/java/util/zip/
H A DCheckedOutputStream.java68 * @param off the start offset of the data
72 public void write(byte[] b, int off, int len) throws IOException { argument
73 out.write(b, off, len);
74 cksum.update(b, off, len);
H A DZipInputStream.java169 * @param off the start offset in the destination array <code>b</code>
174 * @exception IndexOutOfBoundsException if <code>off</code> is negative,
176 * <code>b.length - off</code>
180 public int read(byte[] b, int off, int len) throws IOException { argument
182 if (off < 0 || len < 0 || off > b.length - len) {
193 len = super.read(b, off, len);
199 crc.update(b, off, len);
211 len = in.read(b, off, len);
215 crc.update(b, off, le
422 readFully(byte[] b, int off, int len) argument
437 get16(byte b[], int off) argument
445 get32(byte b[], int off) argument
453 get64(byte b[], int off) argument
[all...]
/openjdk7/jdk/test/java/io/charStreams/
H A DABCOutputStream.java50 public void write(byte buf[], int off, int len) throws IOException { argument
51 for (int i = off; i < off + len; i++)
/openjdk7/jdk/src/share/classes/javax/sound/sampled/
H A DSourceDataLine.java181 * @param off the offset from the beginning of the array, in bytes
186 * @throws ArrayIndexOutOfBoundsException if <code>off</code> is negative,
187 * or <code>off+len</code> is greater than the length of the array
193 public int write(byte[] b, int off, int len); argument
H A DTargetDataLine.java169 * @param off the offset from the beginning of the array, in bytes
175 * @throws ArrayIndexOutOfBoundsException if <code>off</code> is negative,
176 * or <code>off+len</code> is greater than the length of the array
182 public int read(byte[] b, int off, int len); argument
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/codemodel/internal/util/
H A DJavadocEscapeWriter.java68 public void write(char[] buf, int off, int len) throws IOException { argument
70 write(buf[off+i]);
77 public void write(String buf, int off, int len) throws IOException { argument
78 write( buf.toCharArray(), off, len );
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/util/
H A DReadAllStream.java87 public int read(byte b[], int off, int sz) throws IOException { argument
88 int len = memStream.read(b, off, sz);
90 len = fileStream.read(b, off, sz);
128 public int read(byte b[], int off, int sz) throws IOException { argument
129 return (fin != null) ? fin.read(b, off, sz) : -1;
197 public int read(byte b[], int off, int sz) throws IOException { argument
201 sz = Math.min(sz, head.len-(curOff-head.off));
202 System.arraycopy(head.buf,curOff,b,off,sz);
212 if (curOff == head.off+head.len) {
217 curOff = head.off;
225 final int off; field in class:ReadAllStream.MemoryStream.Chunk
228 Chunk(byte[] buf, int off, int len) argument
234 createNext(byte[] buf, int off, int len) argument
[all...]
/openjdk7/jdk/test/java/io/ByteArrayOutputStream/
H A DWriteBounds.java34 private static void dotest(byte[] b, int off, int len, argument
41 b.length + " off = " + off + " len = " + len);
44 System.err.println("ByteArrayOutStream.write - b is null off = " +
45 off + " len = " + len);
49 baos.write(b, off, len);
/openjdk7/langtools/test/tools/javac/implicitThis/
H A DNewBeforeOuterConstructed.java41 public void write(byte b[], int off, int len) { } argument
/openjdk7/jdk/src/share/classes/java/io/
H A DBufferedWriter.java168 * @param off Offset from which to start reading characters
173 public void write(char cbuf[], int off, int len) throws IOException { argument
176 if ((off < 0) || (off > cbuf.length) || (len < 0) ||
177 ((off + len) > cbuf.length) || ((off + len) < 0)) {
188 out.write(cbuf, off, len);
192 int b = off, t = off + len;
214 * @param off Offse
219 write(String s, int off, int len) argument
[all...]
H A DPipedOutputStream.java127 * starting at offset <code>off</code> to this piped output stream.
132 * @param off the start offset in the data.
138 public void write(byte b[], int off, int len) throws IOException { argument
143 } else if ((off < 0) || (off > b.length) || (len < 0) ||
144 ((off + len) > b.length) || ((off + len) < 0)) {
149 sink.receive(b, off, len);
H A DStringReader.java80 * @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);
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/gui/
H A DTypeScriptWriter.java48 public void write(char[] cbuf, int off, int len) throws IOException { argument
49 script.append(String.valueOf(cbuf, off, len));
/openjdk7/hotspot/src/os_cpu/solaris_x86/vm/
H A DthreadLS_solaris_x86.cpp112 ptrdiff_t off ; local
121 off = -1 ;
122 rslt = (*tssa)(&off, NULL, NULL) ; // (off,dtor,darg)
123 if (off != -1) {
124 tlsOffset = off ;
138 off = (*tso)(tlsKey) ;
139 if (off >= 0) {
140 tlsOffset = off ;
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/common/
H A DInputStreamAdapter.java46 public int read(byte b[], int off, int len) throws IOException { argument
47 return stream.read(b, off, len);
/openjdk7/jdk/src/share/classes/sun/net/www/http/
H A DPosterOutputStream.java68 * starting at offset <code>off</code> to this output stream.
71 * @param off the start offset in the data.
74 public synchronized void write(byte b[], int off, int len) { argument
78 super.write (b, off, len);
/openjdk7/jdk/src/share/classes/sun/rmi/log/
H A DLogOutputStream.java68 * @param off the start offset in the data
72 public void write(byte b[], int off, int len) throws IOException { argument
73 raf.write(b, off, len);
/openjdk7/jdk/src/share/classes/java/util/jar/
H A DJarOutputStream.java137 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/test/java/io/Writer/
H A DWriteFromString.java87 * @param off Offset from which to start writing characters
90 public void write(char cbuf[], int off, int len) { argument
91 if ((off < 0) || (off > cbuf.length) || (len < 0) ||
92 ((off + len) > cbuf.length) || ((off + len) < 0)) {
97 buf.append(cbuf, off, len);
/openjdk7/jdk/test/java/util/zip/GZIP/
H A DGZIPInputStreamRead.java84 int off = 0;
87 System.arraycopy(buf, 0, result, off, n);
88 off += n;
91 if (off != src.length || gzis.available() != 0 ||
92 !Arrays.equals(src, Arrays.copyOf(result, off))) {
96 ", read=" + off);
/openjdk7/jdk/src/share/classes/java/net/
H A DSocketOutputStream.java85 * @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...]

Completed in 96 milliseconds

1234567891011>>