Lines Matching defs:boundary

57     // after boundary. But the mail implementation checks for it.
58 // We will only check for these many whitespace characters after boundary
77 * terminating boundary line (or EOF).
90 MIMEParser(InputStream in, String boundary, MIMEConfig config) {
92 this.bndbytes = getBytes("--"+boundary);
98 // \r\n + boundary + "--\r\n" + lots of LWSP
196 int start = match(buf, 0, len); // matches boundary
198 // No boundary is found
202 // Should we throw exception as there is no closing boundary ? But some impl
204 // throw new MIMEParsingException("Reached EOF, but there is no closing MIME boundary.");
210 // Found boundary.
221 return adjustBuf(start+1, len-start-1); // boundary is not at beginning of a line
230 // Consider all the whitespace in boundary+whitespace+"\r\n"
236 // Check for \n or \r\n in boundary+whitespace+"\n" or boundary+whitespace+"\r\n"
244 return adjustBuf(chunkLen+1, len-chunkLen-1); // boundary string in a part data
249 // Should we throw exception as there is no closing boundary ? But some impl
251 //throw new MIMEParsingException("Reached EOF, but there is no closing MIME boundary.");
254 // Some more data needed to determine if it is indeed a proper boundary
294 int start = match(buf, 0, len); // matches boundary
296 // No boundary is found
298 throw new MIMEParsingException("Missing start boundary");
309 // Consider all the whitespace boundary+whitespace+"\r\n"
385 * Finds the boundary in the given buffer using Boyer-Moore algo.
388 * @param mybuf boundary to be searched in this mybuf