org.eclipse.smila.datamodel.ipc
Class IpcAnyReader
java.lang.Object
org.eclipse.smila.datamodel.ipc.IpcAnyReader
public class IpcAnyReader
- extends java.lang.Object
Utility class for reading Any objects from binary (BON) and JSON objects.
- Author:
- aweber
|
Field Summary |
static java.lang.String |
ENCODING
Encoding to use for String (de)serialization. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENCODING
public static final java.lang.String ENCODING
- Encoding to use for String (de)serialization.
- See Also:
- Constant Field Values
IpcAnyReader
public IpcAnyReader()
readBinaryObject
public Any readBinaryObject(byte[] binary)
throws java.io.IOException
- Parameters:
binary -
- Returns:
- Any converted from BON object.
- Throws:
java.io.IOException
readBinaryStream
public Any readBinaryStream(java.io.InputStream stream)
throws java.io.IOException
- Parameters:
stream -
- Returns:
- Any converted from input stream
- Throws:
java.io.IOException
readJsonObject
public Any readJsonObject(java.lang.String json)
throws java.io.IOException
- Parameters:
json -
- Returns:
- Any converted from input JSON string.
- Throws:
java.io.IOException
readJsonStream
public Any readJsonStream(java.io.InputStream stream)
throws java.io.IOException
- Parameters:
stream -
- Returns:
- Any converted from input JSON stream.
- Throws:
java.io.IOException
readStream
public Any readStream(IpcStreamReader reader)
throws java.io.IOException
- Parameters:
reader -
- Returns:
- Any converted from input reader's underlying stream.
- Throws:
java.io.IOException