SMILA 1.0 API documentation

org.eclipse.smila.datamodel.ipc
Class IpcRecordReader

java.lang.Object
  extended by 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

Constructor Summary
IpcRecordReader()
           
 
Method Summary
 Record readBinaryObject(byte[] binary)
           
 Record readBinaryStream(java.io.InputStream stream)
           
 Record readJsonObject(java.lang.String json)
           
 Record readJsonStream(java.io.InputStream stream)
           
 Record readStream(IpcStreamReader reader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IpcRecordReader

public IpcRecordReader()
Method Detail

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

SMILA 1.0 API documentation