| /javamail/demo/src/main/java/ |
| H A D | msgsend.java | 4 * Redistribution and use in source and binary forms, with or without 11 * - Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 58 String record = null; // name of folder in which to record mail 60 BufferedReader in = 61 new BufferedReader(new InputStreamReader(System.in)); 121 to = in.readLine(); 126 subject = in.readLine(); 165 String text = collect(in); 239 public static String collect(BufferedReader in) throw argument [all...] |
| H A D | smtpsend.java | 4 * Redistribution and use in source and binary forms, with or without 11 * - Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 85 String record = null; // name of folder in which to record mail 90 BufferedReader in = 91 new BufferedReader(new InputStreamReader(System.in)); 159 to = in.readLine(); 164 subject = in.readLine(); 218 String text = collect(in); 362 public static String collect(BufferedReader in) throw argument [all...] |
| H A D | sendhtml.java | 4 * Redistribution and use in source and binary forms, with or without 11 * - Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 64 String record = null; // name of folder in which to record mail 66 BufferedReader in = 67 new BufferedReader(new InputStreamReader(System.in)); 119 to = in.readLine(); 124 subject = in.readLine(); 158 collect(in, msg); 211 public void collect(BufferedReader in, Messag argument [all...] |
| /javamail/mail/src/main/java/com/sun/mail/util/ |
| H A D | QDecoderStream.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 46 * This class implements a Q Decoder as defined in RFC 2047 56 * @param in the input stream 58 public QDecoderStream(InputStream in) { argument 59 super(in); 64 * is returned as an <code>int</code> in the range <code>0</code> 75 int c = in [all...] |
| H A D | LineInputStream.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 63 public LineInputStream(InputStream in) { argument 64 super(in); 82 //InputStream in = this.in; 92 while ((c1 = in.read()) != -1) { 98 if (in [all...] |
| H A D | QPDecoderStream.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 61 * @param in the input stream 63 public QPDecoderStream(InputStream in) { argument 64 super(new PushbackInputStream(in, 2)); // pushback of size=2 69 * is returned as an <code>int</code> in the range <code>0</code> 86 int c = in.read(); 90 while ((c = in [all...] |
| H A D | TraceInputStream.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 64 * @param in the underlying input stream. 67 public TraceInputStream(InputStream in, MailLogger logger) { argument 68 super(in); 77 * @param in the underlying input stream. 80 public TraceInputStream(InputStream in, OutputStream traceOut) { argument 81 super(in); [all...] |
| H A D | UUDecoderStream.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 59 private byte[] buffer = new byte[45]; // max decoded chars in a line = 45 72 * controls whether errors in the encoded data cause an exception 77 * @param in the input stream 79 public UUDecoderStream(InputStream in) { argument 80 super(in); 81 lin = new LineInputStream(in); 96 UUDecoderStream(InputStream in, boolean ignoreErrors, boolean ignoreMissingBeginEnd) argument [all...] |
| H A D | BASE64DecoderStream.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 72 * controls whether errors in the encoded data cause an exception 75 * @param in the input stream 77 public BASE64DecoderStream(InputStream in) { argument 78 super(in); 87 * @param in the input stream 88 * @param ignoreErrors ignore errors in encode 90 BASE64DecoderStream(InputStream in, boolean ignoreErrors) argument [all...] |
| /javamail/demo/src/main/java/internal/ |
| H A D | TtyAuthenticator.java | 4 * Redistribution and use in source and binary forms, with or without 11 * - Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 59 BufferedReader in = new BufferedReader( 60 new InputStreamReader((System.in))); 77 String userName = get(in, "User Name", getDefaultUserName()); 85 private static final String get(BufferedReader in, argument 95 String s = in.readLine();
|
| /javamail/mail/src/main/java/com/sun/mail/iap/ |
| H A D | ResponseInputStream.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 67 * @param in the InputStream to wrap 69 public ResponseInputStream(InputStream in) { argument 70 bin = new BufferedInputStream(in, 2 * 1024); 86 * @param ba the ByteArray in which to store the response, or null 145 int avail = buffer.length - idx; // available space in buffer 154 * read() might not return all the bytes in on [all...] |
| H A D | Protocol.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 73 // in case we turn on TLS, we'll need these later 134 connected = true; // must be last statement in constructor 161 * @param in the InputStream to read from 167 public Protocol(InputStream in, PrintStream out, Properties props, argument 176 traceInput = new TraceInputStream(in, traceLogger); 274 * Is another response available in ou [all...] |
| /javamail/mail/src/test/java/javax/mail/internet/ |
| H A D | FoldTest.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 89 private static void parse(BufferedReader in) throws IOException { argument 91 while ((line = in.readLine()) != null) { 94 String orig = readString(in); 98 String e = in.readLine(); 101 String expect = readString(in); 111 private static String readString(BufferedReader in) throw argument [all...] |
| H A D | InternetAddressFoldTest.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 89 private static void parse(BufferedReader in) throws Exception { argument 91 while ((line = in.readLine()) != null) { 99 orig[i] = new InternetAddress(readString(in)); 100 String e = in.readLine(); 103 String expect = readString(in); 112 private static String readString(BufferedReader in) throw argument [all...] |
| H A D | HeaderTokenizerTest.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 68 static boolean parse_mail = false; // parse input in mail format 134 BufferedReader in = 135 new BufferedReader(new InputStreamReader(System.in)); 139 parse(in); 141 while ((s = in.readLine()) != null) 150 * Parse the input in "mai 154 parse(BufferedReader in) argument [all...] |
| H A D | InternetAddressTest.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 71 static boolean parse_mail = false; // parse input in mail format 138 BufferedReader in = 139 new BufferedReader(new InputStreamReader(System.in)); 143 parse(in); 145 while ((s = in.readLine()) != null) 154 * Parse the input in "mai 158 parse(BufferedReader in) argument 237 readLine(BufferedReader in) argument [all...] |
| H A D | ParameterListDecode.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 66 static boolean parse_mail = false; // parse input in mail format 153 BufferedReader in = 154 new BufferedReader(new InputStreamReader(System.in)); 158 parse(in); 162 while ((s = in.readLine()) != null) 175 * Parse the input in "mai 179 parse(BufferedReader in) argument [all...] |
| /javamail/mail/src/test/java/com/sun/mail/util/ |
| H A D | BASE64Test.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 117 BASE64DecoderStream in = new BASE64DecoderStream(bin); 118 readAll(in, nbuf, nbuf.length); 124 in = new BASE64DecoderStream(bin); 125 readAll(in, nbuf, i); 169 in = new BASE64DecoderStream(bin); 174 int n = in 282 readAll(InputStream in, byte[] buf, int readsize) argument [all...] |
| H A D | UUDecoderStreamTest.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 91 BufferedReader in = new BufferedReader(new InputStreamReader( 94 while ((t = parse(in)) != null) 120 BufferedReader in = 121 new BufferedReader(new InputStreamReader(System.in)); 124 while ((t = parse(in)) != null) 132 public static TestData parse(BufferedReader in) throw argument [all...] |
| /javamail/mail/src/test/java/com/sun/mail/imap/protocol/ |
| H A D | UIDSetTest.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 89 BufferedReader in = new BufferedReader(new InputStreamReader( 92 while ((t = parse(in)) != null) 118 BufferedReader in = 119 new BufferedReader(new InputStreamReader(System.in)); 122 while ((t = parse(in)) != null) 130 public static TestData parse(BufferedReader in) throw argument [all...] |
| /javamail/android/activation/src/main/java/javax/activation/ |
| H A D | MimeType.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 48 * in RFC 2045 and 2046. 128 // we have all three items in the proper sequence 256 * the same as what is in the given type. 270 * the same as the content type described in rawdata. 297 * readExternal method must read the values in the same sequence 300 * @param in th 304 readExternal(ObjectInput in) argument [all...] |
| /javamail/mail/src/main/java/javax/mail/util/ |
| H A D | SharedFileInputStream.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 63 * SharedInputStream and may change in a future release. 77 protected RandomAccessFile in; field in class:SharedFileInputStream 85 * The file offset that corresponds to the first byte in 91 * The file offset of the start of data in this subset of the file. 96 * The amount of data in this subset of the file. 113 private RandomAccessFile in; field in class:SharedFileInputStream.SharedFile [all...] |
| /javamail/mail/src/main/java/com/sun/mail/auth/ |
| H A D | MD4.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 54 * MD4 algorithim as described in internet RFC 1320. 66 // size of the input to the compression function in bytes 113 * @param in the input byte array 116 public byte[] digest(byte[] in) { argument 118 engineUpdate(in, 0, in [all...] |
| /javamail/mail/src/main/java/javax/mail/internet/ |
| H A D | MimeMultipart.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 97 * to be ignored and instead search for a boundary line in the message 147 * property, set in the {@link #initializeProperties} method called from 157 * property, set in the {@link #initializeProperties} method called from 167 * property, set in the {@link #initializeProperties} method called from 176 * property, set in the {@link #initializeProperties} method called from 291 * based on System properties described above in 942 readFully(InputStream in, byte[] buf, int off, int len) argument 962 skipFully(InputStream in, long offset) argument [all...] |
| /javamail/mail/src/main/java/com/sun/mail/pop3/ |
| H A D | Protocol.java | 9 * may not use this file except in compliance with the License. You can 15 * When distributing the software, include this License Header Notice in each 20 * exception as provided by Oracle in the GPL Version 2 section of the License 31 * elects to include this software in this distribution under the [CDDL or GPL 80 private boolean noauthdebug = true; // hide auth info in debug output 191 synchronized void setCapabilities(InputStream in) { argument 192 if (in == null) { 200 r = new BufferedReader(new InputStreamReader(in, "us-ascii")); 218 in.close(); 302 * sent in hexadecima [all...] |