Lines Matching defs:is

5  * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
46 * The MimeMultipart class is an implementation of the abstract Multipart
49 * A MimeMultipart is obtained from a MimePart whose primary type
50 * is "multipart" (by invoking the part's <code>getContent()</code> method)
53 * The default multipart subtype is "mixed". The other multipart
57 * content. The intent is that service providers, mail JavaBean writers
62 * handler is treated just like any other type handler, thereby
89 // cached inputstream which is possibly partially consumed
95 // property to indicate if lazyAttachments is ON
100 * is created. Its content type is set to "multipart/mixed".
101 * A unique boundary string is generated and this string is
114 * A unique boundary string is generated and this string is
135 * given DataSource is a MultipartDataSource object. In this case, this
139 * Otherwise, the DataSource is assumed to provide a MIME multipart
140 * byte stream. The <code>parsed</code> flag is set to false. When
194 * appropriate MimeBodyParts. The <code>parsed</code> flag is
195 * set to true, and if true on entry nothing is done. This
196 * method is called by all other methods that need data for
261 // it is allowed to have Mime Package without closing boundary
277 // in the old impl it is allowed to have Mime Package
302 private int readHeaders(InputStream is) throws Exception {
305 int b = is.read();
307 // when it is a shared input stream no need to copy
309 b = is.read();
311 b = is.read();
313 b = is.read();
326 b = is.read();
336 InputStream is, byte[] pattern, long[] posVector,
339 if (!find(is, pattern, posVector, baos, sin)) {
347 InputStream is, byte[] pattern, SharedInputStream sin)
349 if (!find(is, pattern, sin)) {
360 public int readNext(InputStream is, byte[] buff, int patternLength,
364 int bufferLength = is.read(buffer, 0, patternLength);
376 temp = is.read();
391 public boolean find(InputStream is, byte[] pattern, SharedInputStream sin)
401 is.mark(l);
402 bufferLength = readNext(is, buffer, l, eof, posVector, sin);
410 //is.reset();
422 if (!skipLWSPAndCRLF(is)) {
429 is.reset();
430 is.skip(s);
435 InputStream is, byte[] pattern, long[] posVector,
449 is.mark(l);
459 bufferLength = readNext(is, buffer, l, eof, posVector, sin);
463 // looks like it is allowed to not have a closing boundary
480 // looks like it is allowed to not have a closing boundary
484 // looks like it is allowed to not have a closing boundary
553 if (!skipLWSPAndCRLF(is)) {
586 is.reset();
587 is.skip(s);
594 private boolean skipLWSPAndCRLF(InputStream is) throws Exception {
596 b = is.read();
603 b = is.read();
606 b = is.read();
617 b = is.read();
625 b = is.read();
630 b = is.read();
635 b = is.read();
638 b = is.read();
674 // j is the beginning index of suffix being considered
678 // pattern[j..len] is a good suffix
736 public void setInputStream(InputStream is) {
737 this.in = is;