Searched defs:buf (Results 1 - 13 of 13) sorted by relevance

/javamail/mail/src/main/java/com/sun/mail/util/
H A DQPDecoderStream.java154 * @param buf the buffer into which the data is read.
162 public int read(byte[] buf, int off, int len) throws IOException { argument
170 buf[off+i] = (byte)c;
H A DLogOutputStream.java55 private byte[] buf = new byte[80]; field in class:LogOutputStream
79 buf[pos++] = (byte)b;
97 System.arraycopy(b, start, buf, pos, i - start);
104 System.arraycopy(b, start, buf, pos, i - start);
114 System.arraycopy(b, start, buf, pos, len - start);
133 String msg = new String(buf, 0, pos);
143 while (pos + len > buf.length) {
144 byte[] nb = new byte[buf.length * 2];
145 System.arraycopy(buf, 0, nb, 0, pos);
146 buf
[all...]
H A DUUDecoderStream.java127 public int read(byte[] buf, int off, int len) throws IOException { argument
135 buf[off+i] = (byte)c;
184 name = "encoder.buf"; // same default used by encoder
H A DBASE64DecoderStream.java124 * @param buf the buffer into which the data is read.
132 public int read(byte[] buf, int off, int len) throws IOException { argument
136 buf[off++] = buffer[index++];
144 int size = decode(buf, off, bsize);
161 buf[off++] = (byte)c;
/javamail/mail/src/main/java/javax/mail/util/
H A DSharedByteArrayInputStream.java65 * @param buf the byte array
67 public SharedByteArrayInputStream(byte[] buf) { argument
68 super(buf);
76 * @param buf the byte array
80 public SharedByteArrayInputStream(byte[] buf, int offset, int length) { argument
81 super(buf, offset, length);
112 return new SharedByteArrayInputStream(buf,
/javamail/mail/src/test/java/com/sun/mail/util/
H A DBASE64Test.java64 byte[] buf = new byte[bufsize];
69 Arrays.fill(buf, (byte)0);
70 test("Zeroes", buf);
73 Arrays.fill(buf, (byte)0xff);
74 test("Ones", buf);
78 buf[i] = (byte)i;
79 test("Ints", buf);
83 rnd.nextBytes(buf);
84 test("Random", buf);
95 private static void test(String name, byte[] buf) throw argument
282 readAll(InputStream in, byte[] buf, int readsize) argument
301 compare(String name, String type, byte[] buf, byte[] nbuf) argument
323 dump(String name, byte[] buf) argument
[all...]
/javamail/mail/src/main/java/com/sun/mail/imap/
H A DIMAPInputStream.java62 private byte[] buf; // the buffer obtained from fetchBODY() field in class:IMAPInputStream
64 // last valid byte in 'buf'
65 private int bufpos; // The current position within 'buf'
176 buf = ba.getBytes();
196 return buf[bufpos++] & 0xff;
224 System.arraycopy(buf, bufpos, b, off, cnt);
H A DIMAPFolder.java3945 private byte[] buf; // the buffered message, if not null field in class:MessageLiteral
3956 buf = lc.getBytes();
3966 if (buf != null)
3967 os.write(buf, 0, msgSize);
3987 private byte[] buf; field in class:LengthCounter
3991 buf = new byte[8192];
3997 if (buf != null) {
3999 buf = null;
4000 } else if (newsize > buf.length) {
4001 byte newbuf[] = new byte[Math.max(buf
[all...]
/javamail/mbox/src/main/java/com/sun/mail/mbox/
H A DMessageLoader.java57 private byte[] buf = null; field in class:MessageLoader
84 buf = new byte[64 * 1024];
126 buf = null;
275 return buf[pos++] & 0xff;
284 len = fis.read(buf);
287 fos.write(buf, 0, len);
/javamail/mail/src/main/java/com/sun/mail/auth/
H A DMD4.java228 private void implCompress(byte[] buf, int ofs) { argument
229 //b2iLittle64(buf, ofs, x);
231 x[xfs] = (buf[ofs] & 0xff) | ((buf[ofs+1] & 0xff) << 8) |
232 ((buf[ofs+2] & 0xff) << 16) | ((buf[ofs+3] & 0xff) << 24);
/javamail/mail/src/main/java/javax/mail/internet/
H A DMimeMultipart.java748 ByteArrayOutputStream buf = null;
751 buf = new ByteArrayOutputStream();
773 * Read and save the content bytes in buf.
856 buf.write(previnbuf, 0, prevSize - 1);
873 buf.write(previnbuf, 0, prevSize);
895 buf.write(previnbuf, 0, prevSize - eolLen);
899 buf.write(inbuf, 0, inSize);
900 part = createMimeBodyPart(headers, buf.toByteArray());
936 * @param buf buffer to read into
942 private static int readFully(InputStream in, byte[] buf, in argument
[all...]
H A DMimeUtility.java771 boolean first, boolean encodingWord, StringBuffer buf)
793 avail, prefix, first, encodingWord, buf);
795 avail, prefix, false, encodingWord, buf);
815 buf.append("\r\n "); // start a continuation line
817 buf.append(" "); // line will be folded later
819 buf.append(prefix);
821 buf.append((char)encodedBytes[i]);
822 buf.append("?="); // terminate the current sequence
949 StringBuffer buf = new StringBuffer();
951 buf
769 doEncode(String string, boolean b64, String jcharset, int avail, String prefix, boolean first, boolean encodingWord, StringBuffer buf) argument
[all...]
/javamail/mail/src/main/java/com/sun/mail/util/logging/
H A DMailHandler.java1792 * @param buf the formatted data.
1796 private void setContent(MimeBodyPart part, CharSequence buf, String type) throws MessagingException { argument
1801 DataSource source = new ByteArrayDataSource(buf.toString(), type);
1805 part.setText(buf.toString(), charset);
1808 part.setText(buf.toString(), MimeUtility.mimeCharset(charset));
2851 StringBuilder buf = null;
2872 if (buf == null) {
2873 buf = new StringBuilder();
2875 buf.append(head);
2879 buf
[all...]

Completed in 101 milliseconds