public static class BERTool.BERReader extends java.lang.Object
The class instance uses an internal byte buffer to acquire encoded bytes that are read from the input stream. The buffer is allocated with a default or specified size and is resized as needed to acquire the longest BER encoding across multiple invocations of the readTLV() method.
|Constructor and Description|
Constructs an instance with a default initial buffer size.
Constructs an instance with a specified initial buffer size.
|Modifier and Type||Method and Description|
Reads a complete BER encoding from an input stream and returns it as an array of bytes.
public BERReader(int size)
size- the initial size of the internal buffer that is used to acquire a BER encoding.
public byte readTLV(java.io.InputStream in) throws java.io.IOException
in- the input stream.
java.io.IOException- when an input error occurs.
BERTool.BERException- when an error in the BER data is detected.
Copyright © 2021 OSS Nokalva, Inc. All rights reserved.
This document is proprietary to OSS Nokalva, Inc., and may be used only by their direct licensees. Distribution is not permitted. This copyright statement must not be removed.