SMILA (incubation) API documentation

org.eclipse.smila.ipc.bon
Class BinaryFactory

java.lang.Object
  extended by org.eclipse.smila.ipc.bon.BinaryFactory
All Implemented Interfaces:
IpcFactory

public class BinaryFactory
extends java.lang.Object
implements IpcFactory

Factory for stream readers/writers using a binary object notation (BON). See http://wiki.empolis.com/eXB/Wiki.jsp?page=EIAS.IASNG.Documentation.API.Protocol.BON&query=BON for specification.

Author:
aweber

Constructor Summary
BinaryFactory()
           
 
Method Summary
 BinaryStreamReader newStreamReader(java.io.InputStream stream)
          create a new BON stream reader.
 BinaryStreamWriter newStreamWriter(java.io.OutputStream stream)
          create a new BON stream writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryFactory

public BinaryFactory()
Method Detail

newStreamReader

public BinaryStreamReader newStreamReader(java.io.InputStream stream)
                                   throws java.io.IOException
create a new BON stream reader. create a new IPC stream writer.

Specified by:
newStreamReader in interface IpcFactory
Parameters:
stream - stream to write
Returns:
stream writer
Throws:
java.io.IOException - error creating or initializing the reader.

newStreamWriter

public BinaryStreamWriter newStreamWriter(java.io.OutputStream stream)
                                   throws java.io.IOException
create a new BON stream writer. create a new IPC stream reader.

Specified by:
newStreamWriter in interface IpcFactory
Parameters:
stream - stream to read
Returns:
stream writer.
Throws:
java.io.IOException - error creating or initializing the writer.

SMILA (incubation) API documentation