Additional top-level classes in compilation unit: Atom, AString, NString.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Argument | |
| private void | |
| private void | |
| private void | literal(ByteArrayOutputStream b, Protocol protocol)
Write out given ByteArrayOutputStream as a literal. |
| private void | |
| private void | |
| private void | |
| private OutputStream | |
| public void | |
| public Argument | |
| public Argument | |
| public Argument | |
| public Argument | Returns: thisByteArrayOutputStream to be written out. b)Write out given ByteArrayOutputStream as a Literal. |
| public Argument | Returns: thisLiteral representing data to be written out. b)Write out given data as a literal. |
| public Argument | Returns: thisString to write out s)Write out given string as an NSTRING, depending on the type of the characters inside the string. |
| public Argument | Returns: thisString to write out s, String the charset charset)Convert the given string into bytes in the specified charset, and write the bytes out as an NSTRING |
| public Argument | Returns: thisString to write out s, Charset the charset charset)Convert the given string into bytes in the specified charset, and write the bytes out as an NSTRING |
| public Argument | |
| public Argument | |
| public Argument | Returns: thisString to write out s)Write out given string as an ASTRING, depending on the type of the characters inside the string. |
| public Argument | Returns: thisString to write out s, String the charset charset)Convert the given string into bytes in the specified charset, and write the bytes out as an ASTRING |
| public Argument | Returns: thisString to write out s, Charset the charset charset)Convert the given string into bytes in the specified charset, and write the bytes out as an ASTRING |
| items | back to summary |
|---|---|
| protected List<Object> items | |
| Argument | back to summary |
|---|---|
| public Argument() Constructor | |
| append | back to summary |
|---|---|
| public Argument append(Argument arg) Append the given Argument to this Argument. All items from the source argument are copied into this destination argument. | |
| astring | back to summary |
|---|---|
| private void astring(byte[] bytes, Protocol protocol) throws IOException, ProtocolException Write out given String as either an Atom, QuotedString or Literal | |
| literal | back to summary |
|---|---|
| private void literal(byte[] b, Protocol protocol) throws IOException, ProtocolException Write out given byte[] as a literal | |
| literal | back to summary |
|---|---|
| private void literal(ByteArrayOutputStream b, Protocol protocol) throws IOException, ProtocolException Write out given ByteArrayOutputStream as a literal. | |
| literal | back to summary |
|---|---|
| private void literal(Literal b, Protocol protocol) throws IOException, ProtocolException Write out given Literal as a literal. | |
| nastring | back to summary |
|---|---|
| private void nastring(byte[] bytes, Protocol protocol, boolean doQuote) throws IOException, ProtocolException | |
| nstring | back to summary |
|---|---|
| private void nstring(byte[] bytes, Protocol protocol) throws IOException, ProtocolException Write out given String as either NIL, QuotedString, or Literal. | |
| startLiteral | back to summary |
|---|---|
| private OutputStream startLiteral(Protocol protocol, int size) throws IOException, ProtocolException | |
| write | back to summary |
|---|---|
| public void write(Protocol protocol) throws IOException, ProtocolException | |
| writeArgument | back to summary |
|---|---|
| public Argument writeArgument(Argument c) Write out as parenthesised list. | |
| writeAtom | back to summary |
|---|---|
| public Argument writeAtom(String s) Write out given string as an Atom. Note that an Atom can contain only certain US-ASCII characters. No validation is done on the characters in the string. | |
| writeBytes | back to summary |
|---|---|
| public Argument writeBytes(byte[] b) Write out given byte[] as a Literal.
| |
| writeBytes | back to summary |
|---|---|
| public Argument writeBytes(ByteArrayOutputStream b) Write out given ByteArrayOutputStream as a Literal.
| |
| writeBytes | back to summary |
|---|---|
| public Argument writeBytes(Literal b) Write out given data as a literal. | |
| writeNString | back to summary |
|---|---|
| public Argument writeNString(String s) Write out given string as an NSTRING, depending on the type of the characters inside the string. The string should contain only ASCII characters.
| |
| writeNString | back to summary |
|---|---|
| public Argument writeNString(String s, String charset) throws UnsupportedEncodingException Convert the given string into bytes in the specified charset, and write the bytes out as an NSTRING
| |
| writeNString | back to summary |
|---|---|
| public Argument writeNString(String s, Charset charset) Convert the given string into bytes in the specified charset, and write the bytes out as an NSTRING | |
| writeNumber | back to summary |
|---|---|
| public Argument writeNumber(int i) Write out number.
| |
| writeNumber | back to summary |
|---|---|
| public Argument writeNumber(long i) Write out number.
| |
| writeString | back to summary |
|---|---|
| public Argument writeString(String s) Write out given string as an ASTRING, depending on the type of the characters inside the string. The string should contain only ASCII characters. XXX: Hmm .. this should really be called writeASCII() | |
| writeString | back to summary |
|---|---|
| public Argument writeString(String s, String charset) throws UnsupportedEncodingException Convert the given string into bytes in the specified charset, and write the bytes out as an ASTRING
| |
| writeString | back to summary |
|---|---|
| public Argument writeString(String s, Charset charset) Convert the given string into bytes in the specified charset, and write the bytes out as an ASTRING | |