org.openmdx.base.stream.rmi.jrmp
Class BinarySink_1

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.openmdx.base.stream.rmi.jrmp.BinarySink_1
All Implemented Interfaces:
Serializable, Remote, Sink_1_0, BinarySink_1_0

public class BinarySink_1
extends UnicastRemoteObject
implements BinarySink_1_0

Binary Sink 1.0 JRMP Implementation

See Also:
Serialized Form

Field Summary
protected  OutputStream out
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
BinarySink_1(OutputStream binaryStream)
          Creates an StreamSource_1 so that it uses in as its source.
 
Method Summary
 void close()
          Closes this iterator and releases any system resources associated with it.
protected  boolean isOpen()
           
 void writeBytes(byte[] content)
          Updates all or part of the BLOB referenced by this object.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

out

protected OutputStream out
Constructor Detail

BinarySink_1

public BinarySink_1(OutputStream binaryStream)
             throws IOException
Creates an StreamSource_1 so that it uses in as its source.

Parameters:
in - the underlying binary stream.
Throws:
IOException - if an I/O error occurs.
Method Detail

isOpen

protected boolean isOpen()

close

public void close()
           throws IOException
Closes this iterator and releases any system resources associated with it.

No read() operation must be invoked after close().

Specified by:
close in interface Sink_1_0
Throws:
IOException - if an I/O error occurs.

writeBytes

public void writeBytes(byte[] content)
                throws IOException
Description copied from interface: BinarySink_1_0
Updates all or part of the BLOB referenced by this object.

Specified by:
writeBytes in interface BinarySink_1_0
Parameters:
content - the content to be appended to the stream
Throws:
IOException - if an I/O error occurs.


This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.