FetchResponse
public class IMAPResponse extends Response
Constructor | Description |
---|---|
IMAPResponse(Protocol c) |
|
IMAPResponse(IMAPResponse r) |
Copy constructor.
|
IMAPResponse(String r) |
For testing.
|
IMAPResponse(String r,
boolean utf8) |
For testing.
|
Modifier and Type | Method | Description |
---|---|---|
String |
getKey() |
|
int |
getNumber() |
|
boolean |
keyEquals(String k) |
|
String[] |
readSimpleList() |
Read a list of space-separated "flag-extension" sequences and
return the list as a array of Strings.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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 IOException, ProtocolException
IOException
ProtocolException
public IMAPResponse(IMAPResponse r)
r
- the IMAPResponse to copypublic IMAPResponse(String r) throws IOException, ProtocolException
r
- the response stringIOException
- for I/O errorsProtocolException
- for protocol failurespublic IMAPResponse(String r, boolean utf8) throws IOException, ProtocolException
r
- the response stringutf8
- UTF-8 allowed?IOException
- for I/O errorsProtocolException
- for protocol failurespublic String[] readSimpleList()
public String getKey()
public boolean keyEquals(String k)
public int getNumber()
Copyright © 2018 Oracle. All rights reserved.