org.openmdx.base.stream.rmi.jrmp
Class BinarySink_1
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
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
|
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. |
out
protected OutputStream out
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.
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.