|
||||||||||
| 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 java.util.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(java.lang.String s)
Write out given string as an Atom. |
void |
writeBytes(byte[] b)
Write out given byte[] as a Literal. |
void |
writeBytes(java.io.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(java.lang.String s)
Write out given string as an ASTRING, depending on the type of the characters inside the string. |
void |
writeString(java.lang.String s,
java.lang.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 java.util.Vector items
| Constructor Detail |
|---|
public Argument()
| Method Detail |
|---|
public void append(Argument arg)
public void writeString(java.lang.String s)
XXX: Hmm .. this should really be called writeASCII()
s - String to write out
public void writeString(java.lang.String s,
java.lang.String charset)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic void writeBytes(byte[] b)
b - byte[] to write outpublic void writeBytes(java.io.ByteArrayOutputStream b)
b - ByteArrayOutputStream to be written out.public void writeBytes(Literal b)
b - Literal representing data to be written out.public void writeAtom(java.lang.String s)
s - Stringpublic void writeNumber(int i)
i - numberpublic void writeNumber(long i)
i - numberpublic void writeArgument(Argument c)
s - statement
public void write(Protocol protocol)
throws java.io.IOException,
ProtocolException
java.io.IOException
ProtocolException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||