Searched defs:len (Results 201 - 225 of 976) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/sun/net/httpserver/
H A DChunkedOutputStream.java56 final static int OFFSET = 6; /* initial <=4 bytes for len + CRLF */
79 public void write (byte[]b, int off, int len) throws IOException { argument
84 if (len > remain) {
88 len -= remain;
90 while (len >= CHUNK_SIZE) {
92 len -= CHUNK_SIZE;
98 if (len > 0) {
99 System.arraycopy (b,off,buf,pos,len);
100 count += len;
101 pos += len;
[all...]
H A DLeftOverInputStream.java81 protected abstract int readImpl (byte[]b, int off, int len) throws IOException; argument
95 public synchronized int read (byte[]b, int off, int len) throws IOException { argument
99 return readImpl (b, off, len);
112 long len = readImpl (db, 0, bufSize);
113 if (len == -1) {
117 l = l - len;
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DNativeDispatcher.java38 abstract int read(FileDescriptor fd, long address, int len) argument
49 int pread(FileDescriptor fd, long address, int len, long position) argument
55 abstract long readv(FileDescriptor fd, long address, int len) argument
58 abstract int write(FileDescriptor fd, long address, int len) argument
61 int pwrite(FileDescriptor fd, long address, int len, long position) argument
67 abstract long writev(FileDescriptor fd, long address, int len) argument
/openjdk7/jdk/src/share/classes/sun/rmi/transport/proxy/
H A DHttpInputStream.java147 public int read(byte b[], int off, int len) throws IOException argument
149 if (bytesLeft == 0 && len > 0) {
155 if (len > bytesLeft)
156 len = bytesLeft;
157 int bytesRead = in.read(b, off, len);
H A DHttpSendInputStream.java77 * @param len the maximum number of bytes to read
79 public int read(byte b[], int off, int len) throws IOException argument
81 if (len == 0)
85 return in.read(b, off, len);
/openjdk7/jdk/src/share/sample/nio/server/
H A DServer.java164 static private void checkArgs(int i, int len) { argument
165 if ((i + 1) >= len) {
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/
H A DDatagramDispatcher.java42 int read(FileDescriptor fd, long address, int len) throws IOException { argument
43 return read0(fd, address, len);
46 long readv(FileDescriptor fd, long address, int len) throws IOException { argument
47 return readv0(fd, address, len);
50 int write(FileDescriptor fd, long address, int len) throws IOException { argument
51 return write0(fd, address, len);
54 long writev(FileDescriptor fd, long address, int len) throws IOException { argument
55 return writev0(fd, address, len);
66 static native int read0(FileDescriptor fd, long address, int len) argument
69 static native long readv0(FileDescriptor fd, long address, int len) argument
72 write0(FileDescriptor fd, long address, int len) argument
75 writev0(FileDescriptor fd, long address, int len) argument
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/runtime/
H A DStringValueHandler.java43 public void characters(char[] ch, int off, int len) argument
53 _buffer.append(ch, off, len);
/openjdk7/jaxp/src/com/sun/xml/internal/stream/writers/
H A DXMLWriter.java112 * @param len Number of characters to write
117 public void write(char cbuf[], int off, int len) throws IOException{ argument
121 if(len > size){
125 writer.write(cbuf, off, len);
127 buffer.append(cbuf, off, len);
137 * @param len Number of characters to write
141 public void write(String str, int off, int len) throws IOException { argument
142 write(str.toCharArray(), off, len);
/openjdk7/jdk/src/share/classes/javax/sql/rowset/serial/
H A DSerialBlob.java75 private long len; field in class:SerialBlob
100 len = b.length;
101 buf = new byte[(int)len];
102 for(int i = 0; i < len; i++) {
105 origLen = len;
135 len = blob.length();
136 buf = blob.getBytes(1, (int)len );
139 //if ( len < 10240000)
140 // len = 10240000;
141 origLen = len;
[all...]
H A DSerialClob.java71 private long len; field in class:SerialClob
101 len = ch.length;
102 buf = new char[(int)len];
103 for (int i = 0; i < len ; i++){
106 origLen = len;
142 len = clob.length();
144 buf = new char[(int)len];
165 read = reader.read(buf, offset, (int)(len - offset));
173 origLen = len;
185 return len;
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DGlyphPainter1.java203 * @param len specifies the distance into the view
208 public int getBoundedPosition(GlyphView v, int p0, float x, float len) { argument
213 int index = Utilities.getTabbedTextOffset(v, s, metrics, (int)x, (int)(x+len),
/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A DInlineView.java135 * @param len specifies the relative length from <em>pos</em>
146 public int getBreakWeight(int axis, float pos, float len) { argument
150 return super.getBreakWeight(axis, pos, len);
159 * in case <code>offset</code>, <code>pos</code>, or <code>len</code>
171 * @param len specifies the distance along the axis
178 public View breakView(int axis, int offset, float pos, float len) { argument
179 return super.breakView(axis, offset, pos, len);
/openjdk7/jdk/src/share/classes/javax/swing/text/rtf/
H A DAbstractFilter.java160 public void write(byte[] buf, int off, int len) argument
164 while (len > 0) {
186 len --;
/openjdk7/jdk/src/share/classes/java/io/
H A DBufferedInputStream.java265 private int read1(byte[] b, int off, int len) throws IOException { argument
272 if (len >= getBufIfOpen().length && markpos < 0) {
273 return getInIfOpen().read(b, off, len);
279 int cnt = (avail < len) ? avail : len;
315 * @param len maximum number of bytes to read.
322 public synchronized int read(byte b[], int off, int len) argument
326 if ((off | len | (off + len) | (b.length - (off + len))) <
[all...]
H A DBufferedWriter.java169 * @param len Number of characters to write
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)) {
179 } else if (len == 0) {
183 if (len >= nChars) {
188 out.write(cbuf, off, len);
192 int b = off, t = off + len;
207 * <p> If the value of the <tt>len</t
219 write(String s, int off, int len) argument
[all...]
H A DByteArrayOutputStream.java128 * Writes <code>len</code> bytes from the specified byte array
133 * @param len the number of bytes to write.
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)) {
140 ensureCapacity(count + len);
141 System.arraycopy(b, off, buf, count, len);
142 count += len;
H A DCharArrayReader.java114 * @param len Maximum number of characters to read
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)) {
126 } else if (len == 0) {
133 if (pos + len > count) {
134 len = count - pos;
136 if (len <= 0) {
139 System.arraycopy(buf, pos, b, off, len);
[all...]
H A DCharArrayWriter.java93 * @param len the number of chars that are written
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)) {
99 } else if (len == 0) {
103 int newcount = count + len;
107 System.arraycopy(c, off, buf, count, len);
116 * @param len Number of characters to be written
118 public void write(String str, int off, int len) { argument
[all...]
H A DDataInput.java239 * Reads <code>len</code>
247 * <li><code>len</code> bytes
262 * If <code>off</code> is negative, or <code>len</code>
263 * is negative, or <code>off+len</code> is
267 * If <code>len</code> is zero,
272 * at most, equal to <code>len</code>.
276 * @param len an int specifying the number of bytes to read.
281 void readFully(byte b[], int off, int len) throws IOException; argument
H A DDataInputStream.java104 * Reads up to <code>len</code> bytes of data from the contained
106 * as many as <code>len</code> bytes, but a smaller number may be read,
113 * <p> If <code>len</code> is zero, then no bytes are read and
121 * is, at most, equal to <code>len</code>. Let <i>k</i> be the number of
125 * <code>b[off+len-1]</code> unaffected.
128 * <code>b[off]</code> and elements <code>b[off+len]</code> through
133 * @param len the maximum number of bytes read.
139 * <code>len</code> is negative, or <code>len</code> is greater than
148 public final int read(byte b[], int off, int len) throw argument
190 readFully(byte b[], int off, int len) argument
[all...]
H A DFileOutputStream.java306 * @param len the number of bytes that are written
311 private native void writeBytes(byte b[], int off, int len, boolean append) argument
333 * Writes <code>len</code> bytes from the specified byte array
338 * @param len the number of bytes to write.
341 public void write(byte b[], int off, int len) throws IOException { argument
345 writeBytes(b, off, len, append);
346 bytesWritten = len;
H A DLineNumberReader.java153 * @param len
162 public int read(char cbuf[], int off, int len) throws IOException { argument
164 int n = super.read(cbuf, off, len);
H A DPipedInputStream.java221 * @param len the maximum number of bytes received
226 synchronized void receive(byte b[], int off, int len) throws IOException { argument
229 int bytesToTransfer = len;
345 * Reads up to <code>len</code> bytes of data from this piped input
346 * stream into an array of bytes. Less than <code>len</code> bytes
348 * <code>len</code> exceeds the pipe's buffer size.
349 * If <code>len </code> is zero, then no bytes are read and 0 is returned;
356 * @param len the maximum number of bytes read.
362 * <code>len</code> is negative, or <code>len</cod
368 read(byte b[], int off, int len) argument
[all...]
H A DPipedReader.java205 synchronized void receive(char c[], int off, int len) throws IOException { argument
206 while (--len >= 0) {
274 * Reads up to <code>len</code> characters of data from this piped
275 * stream into an array of characters. Less than <code>len</code> characters
277 * <code>len</code> exceeds the pipe's buffer size. This method
282 * @param len the maximum number of characters read.
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) <
[all...]

Completed in 92 milliseconds

1234567891011>>