public class Argument
extends java.lang.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(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
|
public void append(Argument arg)
public void writeString(java.lang.String s)
XXX: Hmm .. this should really be called writeASCII()
s
- String to write outpublic void writeString(java.lang.String s, java.lang.String charset) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public 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)
public void write(Protocol protocol) throws java.io.IOException, ProtocolException
java.io.IOException
ProtocolException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"