Searched defs:len (Results 1 - 25 of 34) sorted by relevance

12

/javamail/demo/src/main/java/
H A DCRLFOutputStream.java72 public void write(byte b[], int off, int len) throws IOException { argument
75 len += off;
76 for (int i = start; i < len ; i++) {
90 if ((len - start) > 0)
91 out.write(b, start, len - start);
H A DNewlineOutputStream.java77 public void write(byte b[], int off, int len) throws IOException { argument
78 for (int i = 0 ; i < len ; i++) {
/javamail/dsn/src/test/java/com/sun/mail/dsn/
H A DNullOutputStream.java56 public void write(byte[] b, int off, int len) throws IOException { argument
/javamail/mail/src/test/java/com/sun/mail/test/
H A DNullOutputStream.java56 public void write(byte[] b, int off, int len) throws IOException { argument
/javamail/mail/src/main/java/com/sun/mail/util/
H A DCRLFOutputStream.java78 public void write(byte b[], int off, int len) throws IOException { argument
81 len += off;
82 for (int i = start; i < len ; i++) {
96 if ((len - start) > 0) {
97 out.write(b, start, len - start);
H A DQPDecoderStream.java149 * Reads up to <code>len</code> decoded bytes of data from this input stream
156 * @param len the maximum number of bytes read.
162 public int read(byte[] buf, int off, int len) throws IOException { argument
164 for (i = 0; i < len; i++) {
H A DTraceInputStream.java118 * Reads up to <code>len</code> bytes of data from this input stream
123 public int read(byte b[], int off, int len) throws IOException { argument
124 int count = in.read(b, off, len);
H A DLogOutputStream.java88 public void write(byte b[], int off, int len) throws IOException { argument
93 len += off;
94 for (int i = start; i < len ; i++) {
112 if ((len - start) > 0) {
113 expandCapacity(len - start);
114 System.arraycopy(b, start, buf, pos, len - start);
115 pos += len - start;
139 * Ensure that the buffer can hold at least len bytes
142 private void expandCapacity(int len) { argument
143 while (pos + len > bu
[all...]
H A DTraceOutputStream.java127 * @param len number of bytes to write
130 public void write(byte b[], int off, int len) throws IOException { argument
133 for (int i = 0; i < len; i++)
136 traceOut.write(b, off, len);
138 out.write(b, off, len);
H A DUUDecoderStream.java127 public int read(byte[] buf, int off, int len) throws IOException { argument
129 for (i = 0; i < len; i++) {
297 //System.out.println("count " + count + ", need " + need + ", len " + line.length());
H A DUUEncoderStream.java106 public void write(byte[] b, int off, int len) throws IOException { argument
107 for (int i = 0; i < len; i++)
H A DBASE64EncoderStream.java107 * Encodes <code>len</code> bytes from the specified
113 * @param len the number of bytes to write.
116 public synchronized void write(byte[] b, int off, int len) argument
118 int end = off + len;
H A DQPEncoderStream.java84 * Encodes <code>len</code> bytes from the specified
90 * @param len the number of bytes to write.
93 public void write(byte[] b, int off, int len) throws IOException { argument
94 for (int i = 0; i < len; i++)
H A DBASE64DecoderStream.java119 * Reads up to <code>len</code> decoded bytes of data from this input stream
126 * @param len the maximum number of bytes read.
132 public int read(byte[] buf, int off, int len) throws IOException { argument
135 while (index < bufsize && len > 0) {
137 len--;
142 int bsize = (len / 3) * 3; // round down to multiple of 3 bytes
146 len -= size;
157 for (; len > 0; len--) {
233 * @param len th
238 decode(byte[] outbuf, int pos, int len) argument
[all...]
/javamail/mbox/src/main/java/com/sun/mail/mbox/
H A DContentLengthCounter.java79 public void write(byte[] b, int off, int len) throws IOException { argument
81 super.write(b, off, len);
83 size += len;
H A DLineCounter.java68 public void write(byte[] b, int off, int len) throws IOException { argument
69 for (int i = 0 ; i < len ; i++) {
H A DNewlineOutputStream.java86 public void write(byte b[], int off, int len) throws IOException { argument
87 for (int i = 0 ; i < len ; i++) {
H A DContentLengthUpdater.java122 public void write(byte[] b, int off, int len) throws IOException { argument
124 for (int i = 0 ; i < len ; i++) {
128 out.write(b, off, len);
H A DMessageLoader.java54 private int pos, len; field in class:MessageLoader
82 pos = len = 0;
248 if (pos + n < len) {
253 n -= (len - pos); // skip rest of this buffer
254 off += (len - pos);
256 if (len <= 0) // ran out of data
258 } while (n > len);
269 if (pos >= len)
271 if (pos >= len)
284 len
[all...]
H A DTempFile.java191 public void write(byte[] b, int off, int len) throws IOException { argument
192 raf.write(b, off, len);
/javamail/mail/src/main/java/com/sun/mail/smtp/
H A DSMTPOutputStream.java73 public void write(byte b[], int off, int len) throws IOException { argument
77 len += off;
78 for (int i = off; i < len; i++) {
86 if ((len - start) > 0)
87 super.write(b, start, len - start);
/javamail/mail/src/main/java/com/sun/mail/pop3/
H A DAppendStream.java75 public void write(byte[] b, int off, int len) throws IOException { argument
76 raf.write(b, off, len);
/javamail/mail/src/main/java/javax/mail/util/
H A DByteArrayDataSource.java59 private int len = -1; field in class:ByteArrayDataSource
86 int len;
87 while ((len = is.read(buf)) > 0)
88 os.write(buf, 0, len);
90 this.len = os.getCount();
99 if (this.data.length - this.len > 256*1024) {
101 this.len = this.data.length; // should be the same
157 if (len < 0)
158 len = data.length;
159 return new SharedByteArrayInputStream(data, 0, len);
[all...]
/javamail/mail/src/main/java/com/sun/mail/auth/
H A DOAuth2SaslClient.java123 public byte[] unwrap(byte[] incoming, int offset, int len) argument
129 public byte[] wrap(byte[] outgoing, int offset, int len) argument
/javamail/mail/src/main/java/com/sun/mail/imap/
H A DIMAPInputStream.java200 * Reads up to <code>len</code> bytes of data from this
213 public synchronized int read(byte b[], int off, int len) argument
223 int cnt = (avail < len) ? avail : len;

Completed in 119 milliseconds

12