/javamail/dsn/src/main/java/com/sun/mail/dsn/ |
H A D | DispositionNotification.java | 37 * only if the new code is made subject to such option by the copyright 86 * @param is the input stream 90 public DispositionNotification(InputStream is) argument 93 notifications = new InternetHeaders(is);
|
H A D | MessageHeaders.java | 37 * only if the new code is made subject to such option by the copyright 70 * @param is InputStream 73 public MessageHeaders(InputStream is) throws MessagingException { argument 74 super(null, is);
|
H A D | DeliveryStatus.java | 37 * only if the new code is made subject to such option by the copyright 94 * @param is the input stream 98 public DeliveryStatus(InputStream is) argument 101 messageDSN = new InternetHeaders(is); 105 while (is.available() > 0) { 106 InternetHeaders h = new InternetHeaders(is);
|
/javamail/mail/src/test/java/com/sun/mail/handlers/ |
H A D | TextXmlTest.java | 37 * only if the new code is made subject to such option by the copyright 130 private static String streamToString(InputStream is) { argument 134 while ((c = is.read()) > 0) 141 is.close();
|
/javamail/outlook/src/main/java/ |
H A D | MSMessage.java | 58 * is not a non-MIME MS message, or if an 92 public MSMessage(Session session, InputStream is) argument 95 parse(is); 99 protected void parse(InputStream is) throws MessagingException { argument 101 if (!(is instanceof ByteArrayInputStream) && 102 !(is instanceof BufferedInputStream)) 103 is = new BufferedInputStream(is); 106 headers.load(is); 110 * This byte[] is share [all...] |
/javamail/mail/src/main/java/com/sun/mail/util/ |
H A D | ASCIIUtility.java | 37 * only if the new code is made subject to such option by the copyright 50 // Private constructor so that this class is not instantiated 264 public static String toString(ByteArrayInputStream is) { argument 265 int size = is.available(); 269 is.read(bytes, 0, size); 287 public static byte[] getBytes(InputStream is) throws IOException { argument 294 if (is instanceof ByteArrayInputStream) { 295 size = is.available(); 297 len = is.read(buf, 0, size); 302 while ((len = is [all...] |
/javamail/mail/src/test/java/javax/mail/internet/ |
H A D | MimeBodyPartTest.java | 37 * only if the new code is made subject to such option by the copyright 70 * Test that the Content-Language header is properly folded 143 * will have the data be encoded when the data is copied to another 165 // ensure the data is correct by reading the first byte 209 private static String getString(InputStream is) throws IOException { argument 210 BufferedReader r = new BufferedReader(new InputStreamReader(is));
|
H A D | MimeMessageTest.java | 37 * only if the new code is made subject to such option by the copyright 80 assertEquals("To: is set", addr, m.getRecipients(TO)[0].toString()); 82 assertArrayEquals("To: is removed", null, m.getRecipients(TO)); 94 assertEquals("To: is set", addr, m.getRecipients(TO)[0].toString()); 96 assertArrayEquals("To: is removed", null, m.getRecipients(TO)); 100 * Test that setFrom with an address containing a newline is folded 113 * Test that setSender with an address containing a newline is folded 126 * Test that setRecipient with a newsgroup address containing a newline is 139 * Test that setRecipients with many newsgroup addresses is folded properly. 239 private static String getString(InputStream is) throw argument [all...] |
/javamail/mail/src/main/java/javax/mail/util/ |
H A D | ByteArrayDataSource.java | 37 * only if the new code is made subject to such option by the copyright 76 * The InputStream is read completely and the data is 79 * @param is the InputStream 83 public ByteArrayDataSource(InputStream is, String type) throws IOException { argument 87 while ((len = is.read(buf)) > 0) 95 * case with large buffers. Check how much is wasted here and if 123 * string. If the parameter is not included, the 124 * default charset is used. 148 * Note that a new stream is returne [all...] |
/javamail/android/activation/src/main/java/javax/activation/ |
H A D | MimetypesFileTypeMap.java | 37 * only if the new code is made subject to such option by the copyright 72 * # the format is <mime type> <space separated file extensions><br> 266 * @param is the input stream to read from 268 public MimetypesFileTypeMap(InputStream is) { argument 271 DB[PROG] = new MimeTypeFile(is); 306 * If no entry is found, the type "application/octet-stream" is returned.
|
H A D | MailcapCommandMap.java | 37 * only if the new code is made subject to such option by the copyright 52 * is based on mailcap files 85 * When a mailcap file is 92 * with the name <i>name</i>. When the <i>name</i> is <code> 96 * name. The command implementation is specified by a fully qualified 100 * When the command name is <code>fallback-entry</code>, the value of 324 * @param is InputStream of the <i>mailcap</i> file to open 326 public MailcapCommandMap(InputStream is) { argument 332 DB[PROG] = new MailcapFile(is); 344 * The result of the search is [all...] |
/javamail/android/activation/src/main/java/com/sun/activation/registries/ |
H A D | MailcapFile.java | 37 * only if the new code is made subject to such option by the copyright 51 * is indexed by the command name and references a List of 101 * @param is the input stream 103 public MailcapFile(InputStream is) throws IOException { argument 106 parse(new BufferedReader(new InputStreamReader(is, "iso-8859-1"))); 211 * This merge will only effect the hashtable that is 243 * # this is a comment 395 // a parameter list is present or not 421 // we only have a useful command if it is named 425 // parse the parameter value (which is autoquote [all...] |
H A D | MimeTypeFile.java | 37 * only if the new code is made subject to such option by the copyright 76 public MimeTypeFile(InputStream is) throws IOException { argument 77 parse(new BufferedReader(new InputStreamReader(is, "iso-8859-1"))); 108 * A mime.types entry is one of two forms: 115 * # this is a test 162 // check to see if this is a comment line? 166 // is it a new format line or old format?
|
/javamail/mail/src/main/java/com/sun/mail/smtp/ |
H A D | SMTPMessage.java | 37 * only if the new code is made subject to such option by the copyright 48 * This class is a specialization of the MimeMessage class that allows 50 * used when this message is sent over SMTP. Simply use this class 88 * Default constructor. An empty message object is created. 89 * The <code>headers</code> field is set to an empty InternetHeaders 90 * object. The <code>flags</code> field is set to an empty Flags 91 * object. The <code>modified</code> flag is set to true. 103 * parse is done within this constructor itself. 106 * @param is the message input stream 109 public SMTPMessage(Session session, InputStream is) argument [all...] |
H A D | SMTPTransport.java | 37 * only if the new code is made subject to such option by the copyright 105 // stream where message data is written 138 private SaslAuthenticator saslAuthenticator; // if SASL is being used 218 // check if SASL is enabled 298 * command (RFC 2645) where an existing connection is used when 340 * @return true if SASL authentication is enabled 349 * Set whether SASL authentication is enabled. 412 * is enabled. If the list is empty or null, all available SASL mechanisms 443 * is enable 1561 is8Bit(InputStream is) argument [all...] |
/javamail/mail/src/main/java/javax/mail/internet/ |
H A D | MimeMultipart.java | 37 * only if the new code is made subject to such option by the copyright 53 * The MimeMultipart class is an implementation of the abstract Multipart 56 * A MimeMultipart is obtained from a MimePart whose primary type 57 * is "multipart" (by invoking the part's <code>getContent()</code> method) 60 * The default multipart subtype is "mixed". The other multipart 64 * content. The intent is that service providers, mail JavaBean writers 69 * handler is treated just like any other type handler, thereby 83 * property is set to <code>true</code> or not set, missing end 91 * If this property is set to <code>true</code> or not set, the multipart 102 * a <code>MessagingException</code> is throw 983 createInternetHeaders(InputStream is) argument 1018 createMimeBodyPart(InputStream is) argument 1023 createMimeBodyPartIs(InputStream is) argument [all...] |
H A D | InternetHeaders.java | 37 * only if the new code is made subject to such option by the copyright 50 * InternetHeaders is a utility class that manages RFC822 style 53 * is positioned at the start of the body. The lines are stored 57 * This class is mostly intended for service providers. MimeMessage 71 * SMTP). Received headers may have been folded. The application is 90 * An individual internet header. This class is only used by 93 * An InternetHeader object with a null value is used as a placeholder 170 // XXX - is this overkill? should we step through in index 295 * or placeholder for the header is found, new headers are 345 * stream is lef 357 InternetHeaders(InputStream is) argument 376 load(InputStream is) argument [all...] |
H A D | MimeUtility.java | 37 * only if the new code is made subject to such option by the copyright 51 * This is a utility class that provides various MIME related 61 * methods. A brief description on handling such headers is given below: <p> 69 * In Java, Strings contain (16 bit) Unicode characters. ASCII is a 71 * that contains only ASCII characters is already mail-safe. If the 73 * additional complexity in this step is that since Unicode is not 105 * If the <code>mail.mime.decodetext.strict</code> System property is 107 * illegal encoded words. The default is true. <p> 112 * an encoding that allows normal end of line conventions is appropriat 373 decode(InputStream is, String encoding) argument 1428 loadMappings(LineInputStream is, Map<String, String> table) argument 1543 checkAscii(InputStream is, int max, boolean breakOnNonAscii) argument [all...] |
H A D | MimeBodyPart.java | 37 * only if the new code is made subject to such option by the copyright 70 * SMTP). Received headers may have been folded. The application is 120 * <code>contentStream</code> is another such stream representing 135 * If our content is a Multipart of Message object, we save it 139 * If this field is not null, it's return by the {@link #getContent} 141 * would return a Multipart or MimeMessage object. This field is 142 * is cleared by the {@link #setDataHandler} method. 149 * An empty MimeBodyPart object is created. 167 * is that the MimeMultipart parser will extract each body part's bytes 171 * @param is th 174 MimeBodyPart(InputStream is) argument [all...] |
H A D | MimeMessage.java | 37 * only if the new code is made subject to such option by the copyright 63 * specific implementations. The simplest case is probably a provider 72 * headers is done. If this property is set to <code>"false"</code>, 73 * strict parsing is not done and many illegal addresses that sometimes 89 * SMTP). Received headers may have been folded. The application is 118 * <code>contentStream</code> is another such stream representing 140 * <code>content</code> array is assumed to be valid and is used 141 * directly in the <code>writeTo</code> method. This flag is 211 MimeMessage(Session session, InputStream is) argument 288 MimeMessage(Folder folder, InputStream is, int msgnum) argument 335 parse(InputStream is) argument 2227 createInternetHeaders(InputStream is) argument [all...] |
/javamail/mbox/src/main/java/com/sun/mail/mbox/ |
H A D | MboxMessage.java | 37 * only if the new code is made subject to such option by the copyright 78 public MboxMessage(Session session, InputStream is) argument 82 if (is instanceof BufferedInputStream) 83 bis = (BufferedInputStream)is; 85 bis = new BufferedInputStream(is); 101 public MboxMessage(MboxFolder folder, InternetHeaders hdrs, InputStream is, argument 109 this.contentStream = is; 248 * Produce the raw bytes of the content. This method is used during 270 * If this is a SunV3 multipart message, handle it specially. 277 // XXX - Following is [all...] |
H A D | MboxFolder.java | 37 * only if the new code is made subject to such option by the copyright 79 * each message in the folder. Access to the array elements is 80 * synchronized, but access to contents of this object is not. 81 * The metadata stored here is only accessed if the message field 82 * is null; otherwise the MboxMessage object contains the metadata. 87 public boolean recent; // message is recent? 88 public boolean deleted; // message is marked deleted? 319 /* Ensure the folder is open */ 322 throw new IllegalStateException("Folder is not Open"); 325 /* Ensure the folder is no 580 appendStream(InputStream is, OutputStream os) argument 857 loadMessage(InputStream is, int msgno, boolean writable) argument [all...] |
/javamail/mail/src/main/java/javax/mail/ |
H A D | Session.java | 37 * only if the new code is made subject to such option by the copyright 62 * The Session class represents a mail session and is not subclassed. 77 * Each <code>javamail.</code><i>X</i> resource file is searched for using 94 * <code>getResource</code> is implemented. Usually, the 113 * attributes that describe a protocol implementation. Each attribute is 115 * name-value pair is semi-colon (";") separated. The following names 162 * protocol. The file format is a series of name-value pairs. Each key 163 * name should correspond to an address type that is currently installed 165 * <code>javax.mail.Address</code> implementation that is present if it is 972 loadProvidersFromStream(InputStream is) argument 1308 load(InputStream is) argument [all...] |