Searched defs:off (Results 1 - 25 of 131) sorted by relevance

123456

/libcore/ojluni/src/main/java/java/io/
H A DFilterOutputStream.java102 * <code>byte</code> array starting at offset <code>off</code> to
115 * @param off the start offset in the data.
120 public void write(byte b[], int off, int len) throws IOException { argument
121 if ((off | len | (b.length - (len + off)) | (off + len)) < 0)
125 write(b[off + i]);
H A DOutputStream.java80 * starting at offset <code>off</code> to this output stream.
81 * The general contract for <code>write(b, off, len)</code> is that
83 * output stream in order; element <code>b[off]</code> is the first
84 * byte written and <code>b[off+len-1]</code> is the last byte written
95 * If <code>off</code> is negative, or <code>len</code> is negative, or
96 * <code>off+len</code> is greater than the length of the array
100 * @param off the start offset in the data.
106 public void write(byte b[], int off, int len) throws IOException { argument
109 } else if ((off < 0) || (off >
[all...]
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 DFilterInputStream.java116 * This method simply performs <code>in.read(b, off, len)</code>
120 * @param off the start offset in the destination array <code>b</code>
126 * @exception IndexOutOfBoundsException If <code>off</code> is negative,
128 * <code>b.length - off</code>
132 public int read(byte b[], int off, int len) throws IOException { argument
133 return in.read(b, off, len);
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.java186 * @param off the start offset in array <code>b</code>
191 * @exception IndexOutOfBoundsException If <code>off</code> is negative,
193 * <code>b.length - off</code>
196 public int read(byte b[], int off, int len) throws IOException { argument
201 } else if (off < 0 || len < 0 || len > b.length - off) {
207 int n = in.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)) {
132 b[off++] = (byte)s.charAt(pos++);
/libcore/ojluni/src/main/java/java/util/zip/
H A DChecksum.java45 * @param off the start offset of the data
48 public void update(byte[] b, int off, int len); argument
H A DAdler32.java67 * if {@code off} is negative, or {@code len} is negative,
68 * or {@code off+len} is greater than the length of the
71 public void update(byte[] b, int off, int len) { argument
75 if (off < 0 || len < 0 || off > b.length - len) {
78 adler = updateBytes(adler, b, off, len);
138 private native static int updateBytes(int adler, byte[] b, int off, argument
141 int off, int len);
140 updateByteBuffer(int adler, long addr, int off, int len) argument
H A DCRC32.java65 * if {@code off} is negative, or {@code len} is negative,
66 * or {@code off+len} is greater than the length of the
69 public void update(byte[] b, int off, int len) { argument
73 if (off < 0 || len < 0 || off > b.length - len) {
76 crc = updateBytes(crc, b, off, len);
135 private native static int updateBytes(int crc, byte[] b, int off, int len); argument
138 int off, int len);
137 updateByteBuffer(int adler, long addr, 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);
/libcore/ojluni/src/main/java/sun/nio/cs/
H A DArrayDecoder.java34 int decode(byte[] src, int off, int len, char[] dst); argument
H A DArrayEncoder.java34 int encode(char[] src, int off, int len, byte[] dst); argument
/libcore/ojluni/src/main/java/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}, starting at offset {@code off}. This method
144 * @param off the starting offset into {@code b} of where the
148 * stream into b, starting at offset {@code off}.
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} of the first byte to
138 * from {@code b}, starting at offset {@code off}.
144 public void write(byte[] b, int off, int len) throws IOException { argument
147 if (b == null || off + len > b.length) {
150 if (off < 0 || len < 0) {
154 out.write(b, off, len);
156 digest.update(b, off, len);
161 * Turns the digest function on or off
[all...]
/libcore/ojluni/src/main/java/javax/crypto/
H A DCipherOutputStream.java149 * starting at offset <code>off</code> to this output stream.
152 * @param off the start offset in the data.
157 public void write(byte b[], int off, int len) throws IOException { argument
158 obuffer = cipher.update(b, off, len);
/libcore/ojluni/src/main/java/sun/net/
H A DTelnetInputStream.java133 * Read into a byte array at offset <i>off</i> for length <i>length</i>
136 public int read(byte bytes[], int off, int length) throws IOException { argument
138 return super.read(bytes, off, length);
141 int offStart = off;
147 bytes[off++] = (byte)c;
149 return (off > offStart) ? off - offStart : -1;
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++]);

Completed in 218 milliseconds

123456