public class BEROctetStringGenerator extends BERGenerator
_out| Constructor and Description |
|---|
BEROctetStringGenerator(OutputStream out)
Use the passed in stream as the target for the generator, writing out the header tag
for a constructed OCTET STRING.
|
BEROctetStringGenerator(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 |
|---|---|
OutputStream |
getOctetOutputStream()
Return a stream representing the content target for this OCTET STRING
|
OutputStream |
getOctetOutputStream(byte[] buf)
Return a stream representing the content target for this OCTET STRING
|
getRawOutputStream, writeBEREnd, writeBERHeaderpublic BEROctetStringGenerator(OutputStream out) throws IOException
out - target streamIOException - if the target stream cannot be written to.public BEROctetStringGenerator(OutputStream out, int tagNo, boolean isExplicit) throws IOException
out - target streamtagNo - the tag number to introduceisExplicit - true if this is an explicitly tagged object, false otherwise.IOException - if the target stream cannot be written to.public OutputStream getOctetOutputStream()
public OutputStream getOctetOutputStream(byte[] buf)
buf - the buffer to use for chunking the data.Copyright © 2015–2019 The veraPDF Consortium. All rights reserved.