FetchResponse
public class IMAPResponse extends Response
Constructor | Description |
---|---|
IMAPResponse(Protocol c) |
|
IMAPResponse(IMAPResponse r) |
Copy constructor.
|
IMAPResponse(java.lang.String r) |
For testing.
|
IMAPResponse(java.lang.String r,
boolean utf8) |
For testing.
|
Modifier and Type | Method | 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.
|
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 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 © 2018 Oracle. All rights reserved.