Lines Matching defs:boundary
60 private static final String BOUNDARY = "boundary=";
77 * Flag indicating if this is the last part (ending with --{boundary}--).
94 public String boundary = null;
112 * Content-Type: multipart/mixed; boundary={boundary}
116 * --{boundary}
121 * --{boundary}
126 * --{boundary}
131 * --{boundary}
225 if (TextUtils.isEmpty(header.boundary)) {
226 throw new IOException("Missing boundary string");
232 // Read pass the first boundary string.
236 throw new IOException("Unexpected EOF before first boundary @ " +
239 if (line.equals("--" + header.boundary)) {
248 MimePart mimePart = parseMimePart(in, header.boundary);
260 * @param boundary Boundary string indicate the end of the part
264 private static MimePart parseMimePart(LineNumberReader in, String boundary)
281 String partBoundary = "--" + boundary;
288 // Check for boundary line.
324 header.boundary = value.second;
339 * an optional boundary string separated by a ";". Below are examples of valid Content-Type
341 * multipart/mixed; boundary={boundary}
345 * @return A pair of content type and boundary string
351 String boundary = null;
359 // Look for boundary string from the rest of the attributes.
366 boundary = attribute.substring(BOUNDARY.length());
368 if (boundary.length() > 1 && boundary.startsWith("\"") && boundary.endsWith("\"")) {
369 boundary = boundary.substring(1, boundary.length()-1);
373 return new Pair<String, String>(type, boundary);