public class Argument extends Object
Constructor and Description |
---|
Argument()
Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
protected Vector items
public void append(Argument arg)
public 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
UnsupportedEncodingException
public 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
Copyright © 2018 JBoss by Red Hat. All rights reserved.