public class IMAPResponse extends Response
Constructor and Description |
---|
IMAPResponse(IMAPResponse r)
Copy constructor.
|
IMAPResponse(Protocol c) |
IMAPResponse(java.lang.String r)
For testing.
|
IMAPResponse(java.lang.String r,
boolean utf8)
For testing.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey() |
int |
getNumber() |
boolean |
keyEquals(java.lang.String k) |
java.lang.String[] |
readSimpleList()
Read a list of space-separated "flag-extension" sequences and
return the list as a array of Strings.
|
byeResponse, getException, getRest, getTag, getType, isBAD, isBYE, isContinuation, isNextNonSpace, isNO, isOK, isSynthetic, isTagged, isUnTagged, peekByte, readAtom, readAtomString, readAtomStringList, readByte, readByteArray, readBytes, readLong, readNumber, readString, readString, readStringList, reset, skip, skipSpaces, skipToken, supportsUtf8, toString
public IMAPResponse(Protocol c) throws java.io.IOException, ProtocolException
java.io.IOException
ProtocolException
public IMAPResponse(IMAPResponse r)
r
- the IMAPResponse to copypublic IMAPResponse(java.lang.String r) throws java.io.IOException, ProtocolException
r
- the response stringjava.io.IOException
- for I/O errorsProtocolException
- for protocol failurespublic IMAPResponse(java.lang.String r, boolean utf8) throws java.io.IOException, ProtocolException
r
- the response stringutf8
- UTF-8 allowed?java.io.IOException
- for I/O errorsProtocolException
- for protocol failurespublic java.lang.String[] readSimpleList()
public java.lang.String getKey()
public boolean keyEquals(java.lang.String k)
public int getNumber()
Copyright © 2010 - 2020 Adobe. All Rights Reserved