Searched defs:off (Results 26 - 50 of 457) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/java/io/
H A DFilterReader.java73 public int read(char cbuf[], int off, int len) throws IOException { argument
74 return in.read(cbuf, off, len);
H A DFilterWriter.java72 * @param off Offset from which to start reading characters
77 public void write(char cbuf[], int off, int len) throws IOException { argument
78 out.write(cbuf, off, len);
85 * @param off Offset from which to start reading characters
90 public void write(String str, int off, int len) throws IOException { argument
91 out.write(str, off, 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 DObjectInput.java76 * @param off the start offset of the data
82 public int read(byte b[], int off, int len) throws IOException; argument
H A DObjectOutput.java70 * @param off the start offset in the data
74 public void write(byte b[], int off, int len) throws IOException; argument
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 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 DStringBufferInputStream.java105 * @param off the start offset of the data.
111 public synchronized int read(byte b[], int off, int len) { argument
114 } else if ((off < 0) || (off > b.length) || (len < 0) ||
115 ((off + len) > b.length) || ((off + len) < 0)) {
130 b[off++] = (byte)s.charAt(pos++);
/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 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
H A DCRC32.java58 public void update(byte[] b, int off, int len) { argument
62 if (off < 0 || len < 0 || off > b.length - len) {
65 crc = updateBytes(crc, b, off, len);
92 private native static int updateBytes(int crc, byte[] b, int off, int len); argument
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 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);
/openjdk7/jdk/src/share/classes/javax/crypto/
H A DCipherOutputStream.java146 * starting at offset <code>off</code> to this output stream.
149 * @param off the start offset in the data.
154 public void write(byte b[], int off, int len) throws IOException { argument
155 obuffer = cipher.update(b, off, len);
/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/jdk/src/share/classes/com/sun/crypto/provider/
H A DISO10126Padding.java53 * @param off the offset in <code>in</code> where the padding bytes
60 public void padWithLen(byte[] in, int off, int len) argument
66 if ((off + len) > in.length) {
74 System.arraycopy(padding, 0, in, off, len);
85 * @param off the offset in <code>in</code> where the padded data starts
91 public int unpad(byte[] in, int off, int len) { argument
97 byte lastByte = in[off + len - 1];
104 int start = off + len - ((int)lastByte & 0x0ff);
105 if (start < off) {
H A DPKCS5Padding.java53 * @param off the offset in <code>in</code> where the padding bytes
60 public void padWithLen(byte[] in, int off, int len) argument
66 if ((off + len) > in.length) {
72 in[i + off] = paddingOctet;
84 * @param off the offset in <code>in</code> where the padded data starts
90 public int unpad(byte[] in, int off, int len) { argument
96 byte lastByte = in[off + len - 1];
103 int start = off + len - ((int)lastByte & 0x0ff);
104 if (start < off) {
H A DPadding.java59 void padWithLen(byte[] in, int off, int len) throws ShortBufferException; argument
68 * @param off the offset in <code>in</code> where the data starts
74 int unpad(byte[] in, int off, int len); argument
/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/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 );
H A DUnicodeEscapeWriter.java73 public final void write(char[] buf, int off, int len) throws IOException { argument
75 write(buf[off+i]);
82 public final void write(String buf, int off, int len) throws IOException { argument
83 write( buf.toCharArray(), off, len );
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/xjc/util/
H A DNullStream.java48 public void write(byte[] b, int off, int len) throws IOException { argument
/openjdk7/jdk/src/solaris/native/java/io/
H A DFileOutputStream_md.c69 jobject this, jbyteArray bytes, jint off, jint len, jboolean append) {
70 writeBytes(env, this, bytes, off, len, append, fos_fd);
68 Java_java_io_FileOutputStream_writeBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off, jint len, jboolean append) argument

Completed in 229 milliseconds

1234567891011>>