Package com.hierynomus.asn1
Class ASN1OutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- com.hierynomus.asn1.ASN1OutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class ASN1OutputStream extends java.io.FilterOutputStream
-
-
Constructor Summary
Constructors Constructor Description ASN1OutputStream(ASN1Encoder encoder, java.io.OutputStream out)Creates an output stream filter built on top of the specified underlying output stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(byte[] b, int off, int len)voidwriteObject(ASN1Object asn1Object)
-
-
-
Constructor Detail
-
ASN1OutputStream
public ASN1OutputStream(ASN1Encoder encoder, java.io.OutputStream out)
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, ornullif this instance is to be created without an underlying stream.
-
-
Method Detail
-
writeObject
public void writeObject(ASN1Object asn1Object) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
-