public class BEROctetStringGenerator extends BERGenerator
_out| Constructor and Description |
|---|
BEROctetStringGenerator(java.io.OutputStream out)
Use the passed in stream as the target for the generator, writing out the header tag
for a constructed OCTET STRING.
|
BEROctetStringGenerator(java.io.OutputStream out,
int tagNo,
boolean isExplicit)
Use the passed in stream as the target for the generator, writing out the header tag
for a tagged constructed OCTET STRING (possibly implicit).
|
| Modifier and Type | Method and Description |
|---|---|
java.io.OutputStream |
getOctetOutputStream()
Return a stream representing the content target for this OCTET STRING
|
java.io.OutputStream |
getOctetOutputStream(byte[] buf)
Return a stream representing the content target for this OCTET STRING
|
getRawOutputStream, writeBEREnd, writeBERHeaderpublic BEROctetStringGenerator(java.io.OutputStream out)
throws java.io.IOException
out - target streamjava.io.IOException - if the target stream cannot be written to.public BEROctetStringGenerator(java.io.OutputStream out,
int tagNo,
boolean isExplicit)
throws java.io.IOException
out - target streamtagNo - the tag number to introduceisExplicit - true if this is an explicitly tagged object, false otherwise.java.io.IOException - if the target stream cannot be written to.public java.io.OutputStream getOctetOutputStream()
public java.io.OutputStream getOctetOutputStream(byte[] buf)
buf - the buffer to use for chunking the data.