| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class Argument extends Object
Field Summary | |
---|---|
protected Vector |
items
|
Constructor Summary | |
---|---|
Argument() Constructor |
Method Summary | |
---|---|
void |
append the given Argument to this Argument. |
void |
|
void |
Write out as parenthesised list. |
void |
Write out given string as an Atom. |
void |
Write out given ByteArrayOutputStream as a Literal. |
void |
writeBytes(byte[] b) Write out given byte[] as a Literal. |
void |
Write out given data as a literal. |
void |
writeNumber(int i) Write out number. |
void |
writeNumber(long i) Write out number. |
void |
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 |
Field Detail |
---|
protected Vector items
Constructor Detail |
---|
public Argument()
Method Detail |
---|
public void append(Argument arg)
arg
public void write(Protocol protocol) throws IOException, ProtocolException
protocol
IOException
ProtocolException
public void writeArgument(Argument c)
c
public void writeAtom(String s)
s
- Stringpublic void writeBytes(ByteArrayOutputStream b)
b
- ByteArrayOutputStream to be written out.public void writeBytes(byte[] b)
b
- byte[] to write outpublic void writeBytes(Literal b)
b
- Literal representing data to be written out.public void writeNumber(int i)
i
- numberpublic void writeNumber(long i)
i
- numberpublic void writeString(String s)
XXX: Hmm .. this should really be called writeASCII()
s
- String to write outpublic void writeString(String s, String charset) throws UnsupportedEncodingException
s
charset
UnsupportedEncodingException
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |