java.io.Serializablepublic class BerLength
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field | Description |
|---|---|---|
int |
val |
| Constructor | Description |
|---|---|
BerLength() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
decode(java.io.InputStream is) |
|
int |
decode(java.io.InputStream is,
java.io.OutputStream os) |
|
static int |
encodeLength(java.io.OutputStream reverseOS,
int length) |
|
static int |
readEocByte(java.io.InputStream is) |
|
static int |
readEocByte(java.io.InputStream is,
java.io.OutputStream os) |
|
int |
readEocIfIndefinite(java.io.InputStream is) |
Reads the end of contents octets from the given input stream if this length object has the
indefinite form.
|
public static int encodeLength(java.io.OutputStream reverseOS,
int length)
throws java.io.IOException
java.io.IOExceptionpublic static int readEocByte(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic static int readEocByte(java.io.InputStream is,
java.io.OutputStream os)
throws java.io.IOException
java.io.IOExceptionpublic int decode(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic int decode(java.io.InputStream is,
java.io.OutputStream os)
throws java.io.IOException
java.io.IOExceptionpublic int readEocIfIndefinite(java.io.InputStream is)
throws java.io.IOException
is - the input streamjava.io.IOException - if an error occurs while reading from the input stream