|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.sun.mail.iap.Response
public class Response
This class represents a response obtained from the input stream of an IMAP server.
| 字段摘要 | |
|---|---|
static int |
BAD
|
protected byte[] |
buffer
|
static int |
BYE
|
static int |
CONTINUATION
|
protected int |
index
|
static int |
NO
|
static int |
OK
|
protected int |
pindex
|
protected int |
size
|
static int |
SYNTHETIC
|
protected String |
tag
|
static int |
TAG_MASK
|
static int |
TAGGED
|
protected int |
type
|
static int |
TYPE_MASK
|
static int |
UNTAGGED
|
| 构造方法摘要 | |
|---|---|
Response(Protocol p)
Read a new Response from the given Protocol |
|
Response(Response r)
Copy constructor. |
|
Response(String s)
|
|
| 方法摘要 | |
|---|---|
static Response |
byeResponse(Exception ex)
Return a Response object that looks like a BYE protocol response. |
String |
getRest()
Return the rest of the response as a string, usually used to return the arbitrary message text after a NO response. |
String |
getTag()
Return the tag, if this is a tagged statement. |
int |
getType()
|
boolean |
isBAD()
|
boolean |
isBYE()
|
boolean |
isContinuation()
|
boolean |
isNO()
|
boolean |
isOK()
|
boolean |
isSynthetic()
|
boolean |
isTagged()
|
boolean |
isUnTagged()
|
byte |
peekByte()
|
String |
readAtom()
Extract an ATOM, starting at the current position. |
String |
readAtom(char delim)
Extract an ATOM, but stop at the additional delimiter (if not NUL). |
String |
readAtomString()
Extract an ASTRING, starting at the current position and return as a String. |
byte |
readByte()
Return the next byte from this Statement. |
ByteArray |
readByteArray()
Extract a NSTRING, starting at the current position. |
ByteArrayInputStream |
readBytes()
Extract a NSTRING, starting at the current position. |
long |
readLong()
Extract a long number, starting at the current position. |
int |
readNumber()
Extract an integer, starting at the current position. |
String |
readString()
Extract a NSTRING, starting at the current position. |
String |
readString(char delim)
Read a string as an arbitrary sequence of characters, stopping at the delimiter Used to read part of a response code inside []. |
String[] |
readStringList()
|
void |
reset()
Reset pointer to beginning of response. |
void |
skip(int count)
|
void |
skipSpaces()
|
void |
skipToken()
Skip to the next space, for use in error recovery while parsing. |
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
protected int index
protected int pindex
protected int size
protected byte[] buffer
protected int type
protected String tag
public static final int TAG_MASK
public static final int CONTINUATION
public static final int TAGGED
public static final int UNTAGGED
public static final int TYPE_MASK
public static final int OK
public static final int NO
public static final int BAD
public static final int BYE
public static final int SYNTHETIC
| 构造方法详细信息 |
|---|
public Response(String s)
public Response(Protocol p)
throws IOException,
ProtocolException
p - the Protocol object
IOException
ProtocolExceptionpublic Response(Response r)
| 方法详细信息 |
|---|
public static Response byeResponse(Exception ex)
public void skipSpaces()
public void skipToken()
public void skip(int count)
public byte peekByte()
public byte readByte()
public String readAtom()
public String readAtom(char delim)
public String readString(char delim)
public String[] readStringList()
public int readNumber()
public long readLong()
public String readString()
public ByteArrayInputStream readBytes()
public ByteArray readByteArray()
public String readAtomString()
public int getType()
public boolean isContinuation()
public boolean isTagged()
public boolean isUnTagged()
public boolean isOK()
public boolean isNO()
public boolean isBAD()
public boolean isBYE()
public boolean isSynthetic()
public String getTag()
public String getRest()
public void reset()
public String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||