public class Asn1JsonOutputStream extends Asn1CharOutputStream
| Constructor and Description | 
|---|
Asn1JsonOutputStream(java.io.Writer writer)
Create a JSON output stream. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
encodeAsHexChar(byte value)
Encode the given byte to hexadecimal chars. 
 | 
void | 
encodeAsHexChars(byte[] data,
                int len)
Encode the given bytes to hexadecimal chars. 
 | 
void | 
encodeCharStrOctStr(java.lang.String value)
Encode the given character string to a JSON string as if the character
 string were an octet string. 
 | 
void | 
encodeString(java.lang.String value)
Encode the given Java string as a JSON string. 
 | 
close, decrLevel, flush, incrLevel, indent, setWriteWhitespace, writepublic Asn1JsonOutputStream(java.io.Writer writer)
public final void encodeAsHexChar(byte value)
                           throws java.io.IOException
value - The byte to be encoded.java.io.IOException - for I/O exceptionpublic final void encodeAsHexChars(byte[] data,
                                   int len)
                            throws java.io.IOException
data - The bytes to be encoded.len - The number of bytes to encode from data. len <= data.lengthjava.io.IOException - for I/O exceptionpublic final void encodeCharStrOctStr(java.lang.String value)
                               throws java.io.IOException
value - The String to encode.java.io.IOExceptionpublic final void encodeString(java.lang.String value)
                        throws java.io.IOException
value - The String to encode.java.io.IOException