|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.mail.iap.Argument
public class Argument
| Field Summary | |
|---|---|
protected Vector |
items
|
| Constructor Summary | |
|---|---|
Argument()
Constructor |
|
| Method Summary | |
|---|---|
void |
append(Argument arg)
append the given Argument to this Argument. |
void |
write(Protocol protocol)
|
void |
writeArgument(Argument c)
Write out as parenthesised list. |
void |
writeAtom(String s)
Write out given string as an Atom. |
void |
writeBytes(byte[] b)
Write out given byte[] as a Literal. |
void |
writeBytes(ByteArrayOutputStream b)
Write out given ByteArrayOutputStream as a Literal. |
void |
writeBytes(Literal b)
Write out given data as a literal. |
void |
writeNumber(int i)
Write out number. |
void |
writeNumber(long i)
Write out number. |
void |
writeString(String s)
Write out given string as an ASTRING, depending on the type of the characters inside the string. |
void |
writeString(String s,
String charset)
Convert the given string into bytes in the specified charset, and write the bytes out as an ASTRING |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Vector items
| Constructor Detail |
|---|
public Argument()
| Method Detail |
|---|
public void append(Argument arg)
public void writeString(String s)
XXX: Hmm .. this should really be called writeASCII()
s - String to write out
public void writeString(String s,
String charset)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void writeBytes(byte[] b)
b - byte[] to write outpublic void writeBytes(ByteArrayOutputStream b)
b - ByteArrayOutputStream to be written out.public void writeBytes(Literal b)
b - Literal representing data to be written out.public void writeAtom(String s)
s - Stringpublic void writeNumber(int i)
i - numberpublic void writeNumber(long i)
i - numberpublic void writeArgument(Argument c)
public void write(Protocol protocol)
throws IOException,
ProtocolException
IOException
ProtocolException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||