Class IMAPResponse

  • Direct Known Subclasses:
    FetchResponse

    public class IMAPResponse
    extends Response
    This class represents a response obtained from the input stream of an IMAP server.
    • Method Detail

      • readSimpleList

        public String[] readSimpleList()
        Read a list of space-separated "flag-extension" sequences and return the list as a array of Strings. An empty list is returned as null. Each item is expected to be an atom, possibly preceeded by a backslash, but we aren't that strict; we just look for strings separated by spaces and terminated by a right paren. We assume items are always ASCII.
        Returns:
        the list items as a String array
      • getKey

        public String getKey()
      • keyEquals

        public boolean keyEquals​(String k)
      • getNumber

        public int getNumber()