This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
com.sun.mail.imap.protocol
class IMAPResponse
- Direct Known Subclasses:
- FetchResponse
-
Most common way to construct:
-
IMAPResponse ir = (IMAPResponse)r[i];
Based on 7 examples
public class IMAPResponse
extends Response
This class represents a response obtained from the input stream
of an IMAP server.
Fields inherited from class com.sun.mail.iap.Response |
BAD, buffer, BYE, CONTINUATION, index, NO, OK, pindex, size, SYNTHETIC, tag, TAGGED, TAG_MASK, type, TYPE_MASK, UNTAGGED |
Constructor Summary |
Copy constructor.
|
|
Method Summary |
String |
|
int |
|
boolean |
|
static IMAPResponse |
|
String[] |
Read a list of space-separated "flag_extension" sequences and
return the list as a array of Strings.
|
Methods inherited from class com.sun.mail.iap.Response |
byeResponse, getRest, getTag, getType, isBAD, isBYE, isContinuation, isNO, isOK, isSynthetic, isTagged, isUnTagged, peekByte, readAtom, readAtom, readAtomString, readByte, readByteArray, readBytes, readLong, readNumber, readString, readString, readStringList, reset, skip, skipSpaces, skipToken, toString |
IMAPResponse
public IMAPResponse(IMAPResponse r)
-
Copy constructor.
- Parameters:
r
IMAPResponse
public IMAPResponse(Protocol c)
throws IOException,
ProtocolException
-
- Parameters:
c
- Throws:
IOException
ProtocolException
getKey
public String getKey()
-
getNumber
public int getNumber()
-
keyEquals
public boolean keyEquals(String k)
-
- Parameters:
k
readResponse
public static IMAPResponse readResponse(Protocol p)
throws IOException,
ProtocolException
-
- Parameters:
p
- Throws:
IOException
ProtocolException
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. This is an IMAP-ism, and perhaps this method should
moved into the IMAP layer.
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.