SMILA 1.0 API documentation

org.eclipse.smila.datamodel.ipc
Class IpcAnyReader

java.lang.Object
  extended by 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.
 
Constructor Summary
IpcAnyReader()
           
 
Method Summary
 Any readBinaryObject(byte[] binary)
           
 Any readBinaryStream(java.io.InputStream stream)
           
 Any readJsonObject(java.lang.String json)
           
 Any readJsonStream(java.io.InputStream stream)
           
 Any readStream(IpcStreamReader reader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODING

public static final java.lang.String ENCODING
Encoding to use for String (de)serialization.

See Also:
Constant Field Values
Constructor Detail

IpcAnyReader

public IpcAnyReader()
Method Detail

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

SMILA 1.0 API documentation