org.eclipse.smila.datamodel.ipc
Class IpcRecordReader
java.lang.Object
org.eclipse.smila.datamodel.ipc.IpcRecordReader
public class IpcRecordReader
- extends java.lang.Object
Utility class for reading Record objects from binary (BON) and JSON objects.
- Author:
- aweber
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IpcRecordReader
public IpcRecordReader()
readBinaryObject
public Record readBinaryObject(byte[] binary)
throws java.io.IOException
- Parameters:
binary -
- Returns:
- Record converted from BON object.
- Throws:
java.io.IOException
readBinaryStream
public Record readBinaryStream(java.io.InputStream stream)
throws java.io.IOException
- Parameters:
stream -
- Returns:
- Record converted from input stream
- Throws:
java.io.IOException
readJsonObject
public Record readJsonObject(java.lang.String json)
throws java.io.IOException
- Parameters:
json -
- Returns:
- Record converted from input JSON string.
- Throws:
java.io.IOException
readJsonStream
public Record readJsonStream(java.io.InputStream stream)
throws java.io.IOException
- Parameters:
stream -
- Returns:
- Record converted from input JSON stream.
- Throws:
java.io.IOException
readStream
public Record readStream(IpcStreamReader reader)
throws java.io.IOException
- Parameters:
reader -
- Returns:
- Record converted from input reader's underlying stream.
- Throws:
java.io.IOException