Package com.google.code.javax.mail.internet

Examples of com.google.code.javax.mail.internet.ParameterList


    private ParameterList parseParameters(Response r)
      throws ParsingException {
  r.skipSpaces();

  ParameterList list = null;
  byte b = r.readByte();
  if (b == '(') {
      list = new ParameterList();
      do {
    String name = r.readString();
    if (parseDebug)
        System.out.println("DEBUG IMAP: parameter name " + name);
    if (name == null)
        throw new ParsingException(
      "BODYSTRUCTURE parse error: " +
      type + "/" + subtype + ": " +
      "null name in parameter list");
    String value = r.readString();
    if (parseDebug)
        System.out.println("DEBUG IMAP: parameter value " + value);
    list.set(name, value);
      } while (r.readByte() != ')');
      list.set(null, "DONE")// XXX - hack
  } else if (b == 'N' || b == 'n') {
      if (parseDebug)
    System.out.println("DEBUG IMAP: parameter list NIL");
      r.skip(2);
  } else
View Full Code Here

TOP

Related Classes of com.google.code.javax.mail.internet.ParameterList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.