Searched defs:len (Results 126 - 150 of 976) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/sun/net/httpserver/
H A DUndefLengthOutputStream.java57 public void write (byte[]b, int off, int len) throws IOException { argument
61 out.write(b, off, len);
/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);
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);
H A DPosterOutputStream.java67 * Writes <code>len</code> bytes from the specified byte array
72 * @param len the number of bytes to write.
74 public synchronized void write(byte b[], int off, int len) { argument
78 super.write (b, off, len);
/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)) {
93 } else if (len == 0)
99 bb.limit(Math.min(off + len, bb.capacity()));
/openjdk7/jdk/src/share/classes/sun/reflect/
H A DClassDefiner.java54 static Class defineClass(String name, byte[] bytes, int off, int len, argument
63 return unsafe.defineClass(name, bytes, off, len, newLoader, null);
/openjdk7/jdk/src/share/classes/sun/rmi/log/
H A DLogInputStream.java79 * @param len the maximum number of bytes read
84 public int read(byte b[], int off, int len) throws IOException { argument
87 len = (length < len) ? length : len;
88 int n = in.read(b, off, len);
/openjdk7/jdk/src/share/classes/sun/rmi/transport/proxy/
H A DHttpSendOutputStream.java77 * @param len the number of bytes to be written
79 public void write(byte b[], int off, int len) throws IOException argument
81 if (len == 0)
85 out.write(b, off, len);
/openjdk7/jdk/src/share/native/sun/security/ec/impl/
H A Dsecitem.c70 SECITEM_AllocItem(PRArenaPool *arena, SECItem *item, unsigned int len, argument
94 result->len = len;
95 if (len) {
97 result->data = PORT_ArenaAlloc(arena, len, kmflag);
99 result->data = PORT_Alloc(len, kmflag);
120 item->len = 0;
128 * item->len to 0.
139 if (from->data && from->len) {
141 to->data = (unsigned char*) PORT_ArenaAlloc(arena, from->len,
[all...]
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/
H A DSocketDispatcher.java38 int read(FileDescriptor fd, long address, int len) throws IOException { argument
39 return FileDispatcherImpl.read0(fd, address, len);
42 long readv(FileDescriptor fd, long address, int len) throws IOException { argument
43 return FileDispatcherImpl.readv0(fd, address, len);
46 int write(FileDescriptor fd, long address, int len) throws IOException { argument
47 return FileDispatcherImpl.write0(fd, address, len);
50 long writev(FileDescriptor fd, long address, int len) throws IOException { argument
51 return FileDispatcherImpl.writev0(fd, address, len);
/openjdk7/langtools/test/tools/javac/
H A DT6855236.java96 private String trim(Tree t, int len) { argument
98 if (s.length() > len)
99 s = s.substring(0, len) + "...";
/openjdk7/jdk/test/sun/nio/cs/
H A DTestStringCodingUTF8.java63 // randomed "off" and "len" on shuffled data
69 int len = rnd.nextInt(maxlen);
70 test(cs, bmpsupp, off, len);
89 static void test(Charset cs, char[] ca, int off, int len) throws Throwable { argument
90 String str = new String(ca, off, len);
91 byte[] ba = encode(cs, ca, off, len);
113 static char[] decode(Charset cs, byte[] ba, int off, int len) { argument
115 int en = (int)(len * cd.maxCharsPerByte());
117 if (len == 0)
123 ByteBuffer bb = ByteBuffer.wrap(ba, off, len);
139 encode(Charset cs, char[] ca, int off, int len) argument
[all...]
/openjdk7/jaxp/src/com/sun/xml/internal/stream/writers/
H A DUTF8OutputStreamWriter.java118 public void write(char cbuf[], int off, int len) throws IOException { argument
119 for (int i = 0; i < len; i++) {
125 final int len = str.length();
126 for (int i = 0; i < len; i++) {
131 public void write(String str, int off, int len) throws IOException { argument
132 for (int i = 0; i < len; i++) {
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/dynamicany/
H A DDynSequenceImpl.java158 public void set_length(int len) argument
165 if (bound > 0 && len > bound) {
172 if (len > oldLength) {
174 DynAny[] newComponents = new DynAny[len];
175 Any[] newAnys = new Any[len];
183 for (int i=oldLength; i<len; i++) {
191 } else if (len < oldLength) {
193 DynAny[] newComponents = new DynAny[len];
194 Any[] newAnys = new Any[len];
195 System.arraycopy(components, 0, newComponents, 0, len);
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/jdi/
H A DArrayReferenceImpl.java72 private void validateArrayAccess(int index, int len) { argument
79 if (len < 0) {
81 "Invalid array range length: " + len);
83 if (index + len > length()) {
86 index + " to " + (index + len - 1));
90 public List getValues(int index, int len) { argument
91 if (len == -1) { // -1 means the rest of the array
92 len = length() - index;
94 validateArrayAccess(index, len);
96 if (len
[all...]
/openjdk7/jdk/src/share/classes/javax/security/sasl/
H A DSaslClient.java158 * <tt>offset</tt> and <tt>len</tt> specify the portion of <tt>incoming</tt>
164 * @param len The number of bytes from <tt>incoming</tt> to use.
172 public abstract byte[] unwrap(byte[] incoming, int offset, int len) argument
186 * <tt>offset</tt> and <tt>len</tt> specify the portion of <tt>outgoing</tt>
191 * @param len The number of bytes from <tt>outgoing</tt> to use.
199 public abstract byte[] wrap(byte[] outgoing, int offset, int len) argument
H A DSaslServer.java151 * <tt>offset</tt> and <tt>len</tt> specify the portion of <tt>incoming</tt>
157 * @param len The number of bytes from <tt>incoming</tt> to use.
165 public abstract byte[] unwrap(byte[] incoming, int offset, int len) argument
178 * <tt>offset</tt> and <tt>len</tt> specify the portion of <tt>outgoing</tt>
183 * @param len The number of bytes from <tt>outgoing</tt> to use.
191 public abstract byte[] wrap(byte[] outgoing, int offset, int len) argument
/openjdk7/jdk/src/share/classes/javax/sql/rowset/serial/
H A DSerialArray.java82 private int len; field in class:SerialArray
154 len = elements.length;
158 for (int i = 0; i < len; i++) {
164 for (int i = 0; i < len; i++) {
170 for (int i = 0; i < len; i++) {
176 for (int i = 0; i < len; i++) {
182 for (int i = 0; i < len; i++) {
188 for (int i = 0; i < len; i++) {
264 len = elements.length;
269 for (int i = 0; i < len;
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/
H A DProgressMonitorInputStream.java145 int len) throws IOException {
146 int nr = in.read(b, off, len);
143 read(byte b[], int off, int len) argument
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DEditorKit.java158 * @param len The amount to write out >= 0.
163 public abstract void write(OutputStream out, Document doc, int pos, int len) argument
200 * @param len The amount to write out >= 0.
205 public abstract void write(Writer out, Document doc, int pos, int len) argument
/openjdk7/jdk/src/share/classes/java/io/
H A DByteArrayInputStream.java148 * Reads up to <code>len</code> bytes of data into an array of bytes
154 * <code>len</code> and <code>count-pos</code>.
167 * @param len the maximum number of bytes read.
173 * <code>len</code> is negative, or <code>len</code> is greater than
176 public synchronized int read(byte b[], int off, int len) { argument
179 } else if (off < 0 || len < 0 || len > b.length - off) {
188 if (len > avail) {
189 len
[all...]
H A DDataOutput.java78 * Writes <code>len</code> bytes from array
83 * or <code>len</code> is negative, or <code>off+len</code>
86 * is thrown. If <code>len</code> is zero,
90 * last byte written is <code>b[off+len-1]</code>.
94 * @param len the number of bytes to write.
97 void write(byte b[], int off, int len) throws IOException; argument
H A DLineNumberInputStream.java113 * Reads up to <code>len</code> bytes of data from this input stream
122 * @param len the maximum number of bytes read.
129 public int read(byte b[], int off, int len) throws IOException { argument
132 } else if ((off < 0) || (off > b.length) || (len < 0) ||
133 ((off + len) > b.length) || ((off + len) < 0)) {
135 } else if (len == 0) {
147 for (; i < len ; i++) {
H A DOutputStreamWriter.java202 * @param len Number of characters to write
206 public void write(char cbuf[], int off, int len) throws IOException { argument
207 se.write(cbuf, off, len);
215 * @param len Number of characters to write
219 public void write(String str, int off, int len) throws IOException { argument
220 se.write(str, off, len);
H A DReader.java98 int len = target.remaining();
99 char[] cbuf = new char[len];
100 int n = read(cbuf, 0, len);
150 * @param len Maximum number of characters to read
157 abstract public int read(char cbuf[], int off, int len) throws IOException; argument

Completed in 344 milliseconds

1234567891011>>