public class ASN1OutputStream extends Object
| Modifier and Type | Class and Description |
|---|---|
private class |
ASN1OutputStream.ImplicitOutputStream |
| Modifier and Type | Field and Description |
|---|---|
private OutputStream |
os |
| Constructor and Description |
|---|
ASN1OutputStream(OutputStream os) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
(package private) ASN1OutputStream |
getDERSubStream() |
(package private) ASN1OutputStream |
getDLSubStream() |
(package private) void |
write(byte[] bytes) |
(package private) void |
write(byte[] bytes,
int off,
int len) |
(package private) void |
write(int b) |
(package private) void |
writeEncoded(int tag,
byte[] bytes) |
(package private) void |
writeEncoded(int flags,
int tagNo,
byte[] bytes) |
(package private) void |
writeImplicitObject(ASN1Primitive obj) |
(package private) void |
writeLength(int length) |
protected void |
writeNull() |
void |
writeObject(ASN1Encodable obj) |
(package private) void |
writeTag(int flags,
int tagNo) |
private OutputStream os
public ASN1OutputStream(OutputStream os)
void writeLength(int length) throws IOException
IOExceptionvoid write(int b) throws IOException
IOExceptionvoid write(byte[] bytes) throws IOException
IOExceptionvoid write(byte[] bytes, int off, int len) throws IOException
IOExceptionvoid writeEncoded(int tag, byte[] bytes) throws IOException
IOExceptionvoid writeTag(int flags, int tagNo) throws IOException
IOExceptionvoid writeEncoded(int flags, int tagNo, byte[] bytes) throws IOException
IOExceptionprotected void writeNull() throws IOException
IOExceptionpublic void writeObject(ASN1Encodable obj) throws IOException
IOExceptionvoid writeImplicitObject(ASN1Primitive obj) throws IOException
IOExceptionpublic void close() throws IOException
IOExceptionpublic void flush() throws IOException
IOExceptionASN1OutputStream getDERSubStream()
ASN1OutputStream getDLSubStream()