Package com.beanit.asn1bean.ber
Class BerLength
java.lang.Object
com.beanit.asn1bean.ber.BerLength
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdecode(InputStream is) intdecode(InputStream is, OutputStream os) static intencodeLength(OutputStream reverseOS, int length) static intstatic intreadEocByte(InputStream is, OutputStream os) intReads the end of contents octets from the given input stream if this length object has the indefinite form.
-
Field Details
-
val
public int val
-
-
Constructor Details
-
BerLength
public BerLength()
-
-
Method Details
-
encodeLength
- Throws:
IOException
-
readEocByte
- Throws:
IOException
-
readEocByte
- Throws:
IOException
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
readEocIfIndefinite
Reads the end of contents octets from the given input stream if this length object has the indefinite form.- Parameters:
is- the input stream- Returns:
- the number of bytes read from the input stream
- Throws:
IOException- if an error occurs while reading from the input stream
-