org.openmdx.base.stream.rmi.jrmp
Class CharacterSink_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.CharacterSink_1
All Implemented Interfaces:
Serializable, Remote, Sink_1_0, CharacterSink_1_0

public class CharacterSink_1
extends UnicastRemoteObject
implements CharacterSink_1_0

Character Sink 1.0 JRMP Implementation

See Also:
Serialized Form

Field Summary
protected  Writer out
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
CharacterSink_1(Writer characterStream)
          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 writeCharacters(char[] content)
          Updates all or part of the CLOB 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 Writer out
Constructor Detail

CharacterSink_1

public CharacterSink_1(Writer characterStream)
                throws IOException
Creates an StreamSource_1 so that it uses in as its source.

Parameters:
in - the underlying character 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.

writeCharacters

public void writeCharacters(char[] content)
                     throws IOException
Description copied from interface: CharacterSink_1_0
Updates all or part of the CLOB referenced by this object.

Specified by:
writeCharacters in interface CharacterSink_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-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.