public final class ASN1Writer extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
writeElement(ASN1Element element,
ByteBuffer buffer)
Appends an encoded representation of the provided ASN.1 element to the
given byte buffer.
|
static void |
writeElement(ASN1Element element,
OutputStream outputStream)
Writes an encoded representation of the provided ASN.1 element to the
given output stream.
|
public static void writeElement(@NonNull ASN1Element element, @NonNull OutputStream outputStream) throws IOException
element - The ASN.1 element to be written.outputStream - The output stream to which the encoded representation
of the element should be written.IOException - If a problem occurs while writing the element.public static void writeElement(@NonNull ASN1Element element, @NonNull ByteBuffer buffer) throws BufferOverflowException
element - The ASN.1 element to be written.buffer - The buffer to which the element should be added.BufferOverflowException - If the provided buffer does not have
enough space between the position and
the limit to hold the encoded element.Copyright © 2022. All rights reserved.