|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.ipc.util.Ipc2BonTrafo
public class Ipc2BonTrafo
Transforms IPC input stream (e.g. JSON) to binary (BON) output stream. The incoming stream can be validated by a given Validator implementation.
| Constructor Summary | |
|---|---|
Ipc2BonTrafo()
constructor without Validator. |
|
Ipc2BonTrafo(IpcValidator validator)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ipc2BonTrafo()
public Ipc2BonTrafo(IpcValidator validator)
validator - used to validate the input JSON.| Method Detail |
|---|
public void json2bon(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
input - the (JSON) input streamoutput - the (BON) output stream
java.io.IOException - conversion error
public void validateBon(byte[] input)
throws java.io.IOException
input - the BON input stream
java.io.IOException - validation error
public void ipc2bon(IpcStreamReader ipcReader,
BinaryStreamWriter bonWriter)
throws java.io.IOException
ipcReader - contains the input streambonWriter - contains the output stream
java.io.IOException - conversion error
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||