webfunds.sox
Class MailReply
java.lang.Object
|
+--webfunds.sox.Encodable
|
+--webfunds.sox.Reply
|
+--webfunds.sox.MailReply
- public class MailReply
- extends Reply
- See Also:
- Serialized Form
|
Method Summary |
protected static void |
cycle()
|
void |
decode(java.io.InputStream is)
Update this reply object with the data read from
an inputstream, where the data on the stream was previously
written using the encode() method of a reply object. |
void |
encode(java.io.OutputStream os)
Encode a reply to an output stream, suitable for
using with ReplyPacket to send remote servers
(which use the decode() method to re-construct the object). |
boolean |
equals(java.lang.Object obj)
|
static MailReply |
example()
|
static MailReply |
example(MailRequest req)
|
MailItem[] |
getMailItems()
|
byte[][] |
getMails()
|
byte[] |
getNext()
|
protected static void |
input()
|
static void |
main(java.lang.String[] args)
|
protected static void |
output()
|
protected static void |
readWrite()
|
void |
resetMails()
|
java.lang.String |
toString()
Convert this object to a human readable string |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
mails
protected MailItem[] mails
next
protected int next
MailReply
public MailReply(Request request,
byte[][] newMails)
throws SOXPacketException
MailReply
public MailReply(Request request,
MailItem[] newMailItems)
MailReply
public MailReply(Request request,
int errno)
MailReply
public MailReply(Request request,
byte[] data)
throws SOXPacketException
MailReply
public MailReply(Request request,
java.io.InputStream is)
throws SOXPacketException
getMailItems
public MailItem[] getMailItems()
resetMails
public void resetMails()
getNext
public byte[] getNext()
getMails
public byte[][] getMails()
encode
public void encode(java.io.OutputStream os)
throws java.io.IOException
- Description copied from class: Reply
- Encode a reply to an output stream, suitable for
using with ReplyPacket to send remote servers
(which use the decode() method to re-construct the object).
This method is usually used by subclasses to decode
the request-id field.
- Overrides:
- encode in class Reply
- Tags copied from class: Reply
- Parameters:
os - the stream on which to send the output- Returns:
- byte[] the reply in encoded form
decode
public void decode(java.io.InputStream is)
throws SOXPacketException
- Description copied from class: Reply
- Update this reply object with the data read from
an inputstream, where the data on the stream was previously
written using the encode() method of a reply object.
This method is usually used by subclasses to decode
the request-id field.
- Overrides:
- decode in class Reply
- Tags copied from class: Reply
- Parameters:
is - the stream from which to read the reply
toString
public java.lang.String toString()
- Description copied from class: Reply
- Convert this object to a human readable string
- Overrides:
- toString in class Reply
equals
public boolean equals(java.lang.Object obj)
- Overrides:
- equals in class Reply
example
public static MailReply example(MailRequest req)
example
public static MailReply example()
main
public static void main(java.lang.String[] args)
cycle
protected static void cycle()
throws java.lang.Exception
output
protected static void output()
throws java.lang.Exception
readWrite
protected static void readWrite()
throws java.lang.Exception
input
protected static void input()
throws java.lang.Exception