Package com.hierynomus.asn1
Class ASN1OutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.hierynomus.asn1.ASN1OutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Field Summary
FieldsFields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
ConstructorsConstructorDescriptionASN1OutputStream
(ASN1Encoder encoder, OutputStream out) Creates an output stream filter built on top of the specified underlying output stream. -
Method Summary
Modifier and TypeMethodDescriptionprivate int
lengthBytes
(int length) void
write
(byte[] b, int off, int len) private void
writeLength
(int length) void
writeObject
(ASN1Object asn1Object) private void
Methods inherited from class java.io.FilterOutputStream
close, flush, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
encoder
-
-
Constructor Details
-
ASN1OutputStream
Creates an output stream filter built on top of the specified underlying output stream.- Parameters:
out
- the underlying output stream to be assigned to the field this.out for later use, ornull
if this instance is to be created without an underlying stream.
-
-
Method Details
-
writeObject
- Throws:
IOException
-
writeLength
- Throws:
IOException
-
lengthBytes
private int lengthBytes(int length) -
writeTag
- Throws:
IOException
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-