public class Jberd
extends java.lang.Object
JberdHandler handler
object will decode data in the input stream and pass it via the
JberdHandler interface to the handler| Constructor and Description |
|---|
Jberd(java.io.InputStream inputStream,
java.io.PrintStream loggingStream,
JberdHandler handler) |
Jberd(java.io.InputStream i,
java.io.PrintStream loggingStream,
JberdHandler h,
JBerdNode rootNode) |
| Modifier and Type | Method and Description |
|---|---|
int |
decode()
decodes the data in the input stream supplied in the constructor and
passes to the
JberdHandler handler also passed in the constructor |
static java.lang.String |
version() |
public Jberd(java.io.InputStream inputStream,
java.io.PrintStream loggingStream,
JberdHandler handler)
inputStream - the stream from which the BER data is readloggingStream - an optional stream to which logging info is written.
If null no logging is performedhandler - a JberdHandler handler to which the decoded
information is passedpublic Jberd(java.io.InputStream i,
java.io.PrintStream loggingStream,
JberdHandler h,
JBerdNode rootNode)
i - the input stream from which the BER data is readloggingStream - an optional stream to which logging info is written.
If null no logging is performedh - a JberdHandler handler to which the decoded information
is passedrootNode - a pre-existing root node. This is a JBerdNode or
subclass thereof which is the root of a pre-built tree containing nodes
that are of interest to the handler, enabling the handler to recognise
important nodes.public static java.lang.String version()
public int decode()
throws java.io.IOException
JberdHandler handler also passed in the constructorjava.io.IOException - in case of i/o error