/javamail/mail/src/main/java/com/sun/mail/smtp/ |
H A D | SMTPOutputStream.java | 73 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/javax/mail/util/ |
H A D | ByteArrayDataSource.java | 59 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...] |
H A D | SharedFileInputStream.java | 231 private SharedFileInputStream(SharedFile sf, long start, long len, argument 239 this.datalen = len; 276 int len = buf.length - pos; 277 if (bufpos - start + pos + len > datalen) 278 len = (int)(datalen - (bufpos - start + pos)); 281 int n = in.read(buf, pos, len); 309 private int read1(byte[] b, int off, int len) throws IOException { argument 317 if (len >= buf.length && markpos < 0) { 319 return in.read(b, off, len); 326 int cnt = (avail < len) 347 read(byte b[], int off, int len) argument [all...] |
/javamail/mail/src/main/java/com/sun/mail/util/ |
H A D | LogOutputStream.java | 88 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 D | QEncoderStream.java | 99 int len = 0; 105 len += 3; // Q-encoding is 1 -> 3 conversion 107 len++; 109 return len;
|
H A D | CRLFOutputStream.java | 78 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 D | TraceOutputStream.java | 127 * @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 D | BASE64DecoderStream.java | 119 * 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...] |
H A D | QPDecoderStream.java | 149 * 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 D | TraceInputStream.java | 118 * 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 D | QPEncoderStream.java | 84 * 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++)
|
/javamail/mbox/src/main/java/com/sun/mail/mbox/ |
H A D | ContentLengthCounter.java | 79 public void write(byte[] b, int off, int len) throws IOException { argument 81 super.write(b, off, len); 83 size += len;
|
H A D | MessageLoader.java | 54 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 D | LineCounter.java | 68 public void write(byte[] b, int off, int len) throws IOException { argument 69 for (int i = 0 ; i < len ; i++) {
|
H A D | NewlineOutputStream.java | 86 public void write(byte b[], int off, int len) throws IOException { argument 87 for (int i = 0 ; i < len ; i++) {
|
H A D | ContentLengthUpdater.java | 122 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);
|
/javamail/dsn/src/test/java/com/sun/mail/dsn/ |
H A D | NullOutputStream.java | 56 public void write(byte[] b, int off, int len) throws IOException { argument
|
/javamail/mail/src/test/java/com/sun/mail/test/ |
H A D | NullOutputStream.java | 56 public void write(byte[] b, int off, int len) throws IOException { argument
|
/javamail/demo/src/main/java/ |
H A D | CRLFOutputStream.java | 72 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 D | NewlineOutputStream.java | 77 public void write(byte b[], int off, int len) throws IOException { argument 78 for (int i = 0 ; i < len ; i++) {
|
/javamail/mail/src/main/java/javax/mail/search/ |
H A D | StringTerm.java | 109 int len = s.length() - pattern.length(); 110 for (int i=0; i <= len; i++) {
|
/javamail/mail/src/main/java/com/sun/mail/pop3/ |
H A D | AppendStream.java | 75 public void write(byte[] b, int off, int len) throws IOException {
argument 76 raf.write(b, off, len);
|
/javamail/mail/src/main/java/com/sun/mail/auth/ |
H A D | MD4.java | 171 private void engineUpdate(byte[] b, int ofs, int len) { argument 172 if (len == 0) { 175 if ((ofs < 0) || (len < 0) || (ofs > b.length - len)) { 181 bytesProcessed += len; 184 int n = Math.min(len, blockSize - bufOfs); 188 len -= n; 196 while (len >= blockSize) { 198 len -= blockSize; 202 if (len > [all...] |
H A D | OAuth2SaslClient.java | 123 public byte[] unwrap(byte[] incoming, int offset, int len) argument 129 public byte[] wrap(byte[] outgoing, int offset, int len) argument
|
/javamail/mail/src/test/java/com/sun/mail/smtp/ |
H A D | SMTPSaslHandler.java | 200 int len = s.length(); 202 len -= 2; 204 len--; 205 for (int i = 0; i < len; i++) {
|