public class Ipc2BonTrafo
extends java.lang.Object
| Constructor and Description |
|---|
Ipc2BonTrafo()
constructor without Validator.
|
Ipc2BonTrafo(IpcValidator validator) |
| Modifier and Type | Method and Description |
|---|---|
void |
ipc2bon(IpcStreamReader ipcReader,
BinaryStreamWriter bonWriter)
Writes an ipc input stream (e.g.
|
void |
json2bon(java.io.InputStream input,
java.io.OutputStream output)
Writes an JSON input stream to a binary (BON) output stream.
|
void |
validateBon(byte[] input)
Validates a BON object.
|
public Ipc2BonTrafo()
public Ipc2BonTrafo(IpcValidator validator)
validator - used to validate the input JSON.public void json2bon(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
input - the (JSON) input streamoutput - the (BON) output streamjava.io.IOException - conversion errorpublic void validateBon(byte[] input)
throws java.io.IOException
input - the BON input streamjava.io.IOException - validation errorpublic void ipc2bon(IpcStreamReader ipcReader, BinaryStreamWriter bonWriter) throws java.io.IOException
ipcReader - contains the input streambonWriter - contains the output streamjava.io.IOException - conversion error