submarine.core
Class InternalListener.EchoReader

java.lang.Object
  |
  +--java.io.Reader
        |
        +--submarine.core.InternalListener.EchoReader
Enclosing class:
InternalListener

class InternalListener.EchoReader
extends java.io.Reader

Une surchage de java.io.Reader qui retourne tout ce qu'elle lit vers un Writer.


Field Summary
private  java.io.Reader iReader
           
private  java.io.Writer iWriter
           
 
Fields inherited from class java.io.Reader
lock, maxSkipBufferSize, skipBuffer
 
Constructor Summary
InternalListener.EchoReader(java.io.Reader reader, java.io.Writer writer)
           
 
Method Summary
 void close()
           
 int read(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

iReader

private java.io.Reader iReader

iWriter

private java.io.Writer iWriter
Constructor Detail

InternalListener.EchoReader

public InternalListener.EchoReader(java.io.Reader reader,
                                   java.io.Writer writer)
Parameters:
reader -  
writer -  
Method Detail

read

public int read(char[] cbuf,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.Reader
Parameters:
cbuf -  
off -  
len -  
Returns:
int
Throws:
java.io.IOException -  

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.Reader
Throws:
java.io.IOException -  

Submarine project. free distribution of this software must include the opensource licence.
Guénolé de Cadoudal.