Searched refs:is (Results 1 - 25 of 46) sorted by relevance

12

/javamail/mail/src/test/java/com/sun/mail/util/
H A DLineInputStreamTest.java37 * only if the new code is made subject to such option by the copyright
85 LineInputStream is = createStream(s);
86 assertEquals("line1", is.readLine());
87 assertEquals("line2", is.readLine());
88 assertEquals("line3", is.readLine());
89 assertEquals(null, is.readLine());
96 LineInputStream is = createStream(s);
97 assertEquals("", is.readLine());
98 assertEquals("", is.readLine());
99 assertEquals("", is
[all...]
/javamail/mail/src/test/java/com/sun/mail/imap/protocol/
H A DIMAPProtocolTest.java37 * only if the new code is made subject to such option by the copyright
92 InputStream is = b.getByteArrayInputStream();
93 byte[] ba = new byte[is.available()];
94 is.read(ba);
115 InputStream is = b.getByteArrayInputStream();
116 byte[] ba = new byte[is.available()];
117 is.read(ba);
/javamail/outlook/src/main/java/
H A DMSMessage.java58 * 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/javax/mail/internet/
H A DMimePartDataSource.java37 * only if the new code is made subject to such option by the copyright
52 * a MimePart. This class is primarily meant for service providers.
83 * Thus the returned input stream is a decoded stream of bytes.<p>
95 InputStream is;
99 is = ((MimeBodyPart)part).getContentStream();
101 is = ((MimeMessage)part).getContentStream();
108 return MimeUtility.decode(is, encoding);
110 return is;
H A DMimeUtility.java37 * 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 DMimeMessage.java37 * 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...]
H A DMimeBodyPart.java37 * 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...]
/javamail/dsn/src/main/java/com/sun/mail/dsn/
H A DMessageHeaders.java37 * 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 DDeliveryStatus.java37 * 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);
H A Dtext_rfc822headers.java37 * only if the new code is made subject to such option by the copyright
106 InputStreamReader is = null;
110 is = new InputStreamReader(ds.getInputStream(), enc);
128 while ((count = is.read(buf, pos, buf.length - pos)) != -1) {
144 is.close();
202 // If the charset parameter is absent, use US-ASCII.
H A DDispositionNotification.java37 * 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);
/javamail/mail/src/test/java/com/sun/mail/smtp/
H A DNopServer.java37 * only if the new code is made subject to such option by the copyright
75 * Return the port the server is listening on.
111 InputStream is = clientSocket.getInputStream();
112 while (is.read() >= 0)
/javamail/mail/src/main/java/com/sun/mail/util/
H A DASCIIUtility.java37 * 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/main/java/com/sun/mail/handlers/
H A Dtext_plain.java37 * only if the new code is made subject to such option by the copyright
76 InputStreamReader is = null;
80 is = new InputStreamReader(ds.getInputStream(), enc);
98 while ((count = is.read(buf, pos, buf.length - pos)) != -1) {
114 is.close();
166 // If the charset parameter is absent, use US-ASCII.
H A Dimage_gif.java37 * only if the new code is made subject to such option by the copyright
60 InputStream is = ds.getInputStream();
65 while ((count = is.read(buf, pos, buf.length - pos)) != -1) {
/javamail/android/activation/src/main/java/javax/activation/
H A DCommandInfo.java37 * only if the new code is made subject to such option by the copyright
47 * The CommandInfo class is used by CommandMap implementations to
50 * bean. There is also a method that will return the name of the
51 * class that implements the command but <i>it is not guaranteed to
52 * return a valid value</i>. The reason for this is to allow CommandMap
106 * If the DataHandler parameter is null, then the bean is
108 * if for some reason the DataHandler that is passed in
157 // if we got one and it is a CommandObject
163 InputStream is
[all...]
/javamail/mail/src/test/java/com/sun/mail/pop3/
H A DPOP3ReadableMimeTest.java37 * only if the new code is made subject to such option by the copyright
116 * is exactly the same data as produced by the writeTo method.
140 // no exception is success!
145 InputStream is = null;
152 is = rp.getMimeStream();
154 for (i = 0; (b = is.read()) != -1; i++)
159 is.close();
/javamail/webapp/src/main/java/demo/
H A DAttachmentServlet.java79 InputStream is = part.getInputStream();
81 while ((i = is.read()) != -1)
/javamail/demo/src/main/java/internal/
H A Dfpopulate.java37 * Copy folder hierarchies between files and a Store. This is a useful
201 BufferedInputStream is = new BufferedInputStream(fis);
202 is.mark(1024);
203 DataInputStream dis = new DataInputStream(is);
210 is.reset();
211 MimeMessage msg = new MimeMessage(session, is);
226 " in which case, the source foldername is used");
/javamail/mail/src/test/java/javax/mail/internet/
H A DMailDateFormatTest.java37 * only if the new code is made subject to such option by the copyright
58 import static org.hamcrest.CoreMatchers.is;
89 assertThat(fmt.getTimeZone().getID(), is("America/Los_Angeles"));
95 is("Wed, 31 Dec 2014 16:00:00 -0800 (PST)"));
120 assertThat(fmt.parse(fmt.format(date)), is(date));
156 is("Wed, 31 Dec 2014 15:00:00 -0800 (GMT-08:00)"));
204 is(TimeZone.getTimeZone("Europe/Brussels")));
309 assertTrue("Not supporting CFWS is allowed", true);
399 assertThat(date, is(new Date(1341100799000L)));
422 assertThat(date, is(equivalentWithoutOffse
[all...]
/javamail/mail/src/test/java/com/sun/mail/handlers/
H A DTextXmlTest.java37 * 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/mail/src/main/java/com/sun/mail/smtp/
H A DSMTPMessage.java37 * 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...]
/javamail/mail/src/main/java/javax/mail/util/
H A DByteArrayDataSource.java37 * 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/mail/src/main/java/com/sun/mail/imap/
H A DIMAPMessage.java37 * only if the new code is made subject to such option by the copyright
59 * filled-in incrementally when a request is made for some item. Or
60 * when a prefetch is done using the FetchProfile. <p>
63 * messageNumber is its index into its containing folder's messageCache.
64 * The sequenceNumber is its IMAP sequence-number.
70 * The lock hierarchy is that the lock on the IMAPMessage object, if
86 * is created only when needed, to avoid significantly increasing
130 // This is our Envelope
156 * is not available.
162 * @exception FolderClosedException if the folder is close
[all...]
/javamail/mbox/src/main/java/com/sun/mail/mbox/
H A DMboxMessage.java37 * 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...]

Completed in 38 milliseconds

12