com.sun.mail.imap.protocol
Class FetchResponse

java.lang.Object
  extended by com.sun.mail.iap.Response
      extended by com.sun.mail.imap.protocol.IMAPResponse
          extended by com.sun.mail.imap.protocol.FetchResponse

public class FetchResponse
extends IMAPResponse

This class represents a response obtained from the input stream of an IMAP server.

Version:
1.11, 07/05/04
Author:
John Mani

Field Summary
 
Fields inherited from class com.sun.mail.iap.Response
BAD, buffer, BYE, CONTINUATION, index, NO, OK, pindex, size, SYNTHETIC, tag, TAG_MASK, TAGGED, type, TYPE_MASK, UNTAGGED
 
Constructor Summary
FetchResponse(IMAPResponse r)
           
FetchResponse(Protocol p)
           
 
Method Summary
 Item getItem(java.lang.Class c)
           
 Item getItem(int index)
           
static Item getItem(Response[] r, int msgno, java.lang.Class c)
           
 int getItemCount()
           
 
Methods inherited from class com.sun.mail.imap.protocol.IMAPResponse
getKey, getNumber, keyEquals, readResponse, readSimpleList
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FetchResponse

public FetchResponse(Protocol p)
              throws java.io.IOException,
                     ProtocolException
Throws:
java.io.IOException
ProtocolException

FetchResponse

public FetchResponse(IMAPResponse r)
              throws java.io.IOException,
                     ProtocolException
Throws:
java.io.IOException
ProtocolException
Method Detail

getItemCount

public int getItemCount()

getItem

public Item getItem(int index)

getItem

public Item getItem(java.lang.Class c)

getItem

public static Item getItem(Response[] r,
                           int msgno,
                           java.lang.Class c)


Copyright © 2011. All Rights Reserved.