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

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.CharacterSource_1Proxy
All Implemented Interfaces:
Serializable, Remote, Source_1_0, CharacterSource_1_0

public class CharacterSource_1Proxy
extends UnicastRemoteObject
implements CharacterSource_1_0

Character Source 1.0 JRMP Implementation

See Also:
Serialized Form

Field Summary
protected  CharacterSource_1_0 delegate
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
CharacterSource_1Proxy(CharacterSource_1_0 delegate)
          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()
           
 long length()
          Get the stream's length
 char[] readCharacters(int capacity)
          Retrieves a copy of the specified substring in the CLOB value designated by this CLOB 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

delegate

protected CharacterSource_1_0 delegate
Constructor Detail

CharacterSource_1Proxy

public CharacterSource_1Proxy(CharacterSource_1_0 delegate)
                       throws IOException
Creates an StreamSource_1 so that it uses in as its source.

Parameters:
delegate - 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 Source_1_0
Throws:
IOException - if an I/O error occurs.

length

public long length()
            throws IOException
Description copied from interface: Source_1_0
Get the stream's length

Specified by:
length in interface Source_1_0
Returns:
the length of the stream or -1 if it is unknown.
Throws:
IOException

readCharacters

public char[] readCharacters(int capacity)
                      throws IOException
Retrieves a copy of the specified substring in the CLOB value designated by this CLOB object. The substring begins at the specified position and has up to capaciy consecutive characters.

Specified by:
readCharacters in interface CharacterSource_1_0
Parameters:
capacity - the number of consecutive characters to be copied
Returns:
a character array containing up to capacity consecutive characters from the CLOB; or null in case of an end of stream condition
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.