| java.lang.Object | |
| ↳ | com.google.code.com.sun.mail.iap.Response |
Known Direct Subclasses
|
Known Indirect Subclasses
|
This class represents a response obtained from the input stream of an IMAP server.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | BAD | ||||||||||
| int | BYE | ||||||||||
| int | CONTINUATION | ||||||||||
| int | NO | ||||||||||
| int | OK | ||||||||||
| int | SYNTHETIC | ||||||||||
| int | TAGGED | ||||||||||
| int | TAG_MASK | ||||||||||
| int | TYPE_MASK | ||||||||||
| int | UNTAGGED | ||||||||||
| int | increment | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| buffer | |||||||||||
| index | |||||||||||
| pindex | |||||||||||
| size | |||||||||||
| tag | |||||||||||
| type | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Read a new Response from the given Protocol
| |||||||||||
Copy constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return a Response object that looks like a BYE protocol response.
| |||||||||||
Return the rest of the response as a string, usually used to
return the arbitrary message text after a NO response.
| |||||||||||
Return the tag, if this is a tagged statement.
| |||||||||||
Extract an ATOM, but stop at the additional delimiter
(if not NUL).
| |||||||||||
Extract an ATOM, starting at the current position.
| |||||||||||
Extract an ASTRING, starting at the current position
and return as a String.
| |||||||||||
Return the next byte from this Statement.
| |||||||||||
Extract a NSTRING, starting at the current position.
| |||||||||||
Extract a NSTRING, starting at the current position.
| |||||||||||
Extract a long number, starting at the current position.
| |||||||||||
Extract an integer, starting at the current position.
| |||||||||||
Read a string as an arbitrary sequence of characters,
stopping at the delimiter Used to read part of a
response code inside [].
| |||||||||||
Extract a NSTRING, starting at the current position.
| |||||||||||
Reset pointer to beginning of response.
| |||||||||||
Skip to the next space, for use in error recovery while parsing.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
| s |
|---|
Read a new Response from the given Protocol
| p | The Protocol object |
|---|
| IOException | |
|---|---|
| ProtocolException |
Return a Response object that looks like a BYE protocol response. Include the details of the exception in the response string.
| ex |
|---|
Return the rest of the response as a string, usually used to return the arbitrary message text after a NO response.
Return the tag, if this is a tagged statement.
Extract an ATOM, but stop at the additional delimiter (if not NUL). Used to parse a response code inside [].
| delim |
|---|
Extract an ATOM, starting at the current position. Updates the internal index to beyond the Atom.
Extract an ASTRING, starting at the current position and return as a String. An ASTRING can be a QuotedString, a Literal or an Atom Any errors in parsing returns null ASTRING := QuotedString | Literal | Atom
Return the next byte from this Statement.
Extract a NSTRING, starting at the current position. Return it as a ByteArray. The sequence 'NIL' is returned as null NSTRING := QuotedString | Literal | "NIL"
Extract a NSTRING, starting at the current position. Return it as a ByteArrayInputStream. The sequence 'NIL' is returned as null NSTRING := QuotedString | Literal | "NIL"
Extract a long number, starting at the current position. Updates the internal index to beyond the number. Returns -1 if a long number was not found.
Extract an integer, starting at the current position. Updates the internal index to beyond the number. Returns -1 if a number was not found.
Read a string as an arbitrary sequence of characters, stopping at the delimiter Used to read part of a response code inside [].
| delim |
|---|
Extract a NSTRING, starting at the current position. Return it as a String. The sequence 'NIL' is returned as null NSTRING := QuotedString | Literal | "NIL"
Reset pointer to beginning of response.
| count |
|---|
Skip to the next space, for use in error recovery while parsing.