|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.unboundid.asn1.ASN1Writer
@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ASN1Writer
This class provides an efficient mechanism for writing ASN.1 elements to output streams.
| Method Summary | |
|---|---|
static void |
writeElement(ASN1Element element,
java.nio.ByteBuffer buffer)
Appends an encoded representation of the provided ASN.1 element to the given byte buffer. |
static void |
writeElement(ASN1Element element,
java.io.OutputStream outputStream)
Writes an encoded representation of the provided ASN.1 element to the given output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void writeElement(ASN1Element element,
java.io.OutputStream outputStream)
throws java.io.IOException
element - The ASN.1 element to be written.outputStream - The output stream to which the encoded representation
of the element should be written.
java.io.IOException - If a problem occurs while writing the element.
public static void writeElement(ASN1Element element,
java.nio.ByteBuffer buffer)
throws java.nio.BufferOverflowException
element - The ASN.1 element to be written.buffer - The buffer to which the element should be added.
java.nio.BufferOverflowException - If the provided buffer does not have
enough space between the position and
the limit to hold the encoded element.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||