org.fraid.io
Class TeeReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.FilterReader
          extended by org.fraid.io.TeeReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable

public class TeeReader
extends java.io.FilterReader

"Tees" a Reader.


Field Summary
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
TeeReader(java.io.Reader aIn, java.io.OutputStream aTeeStream)
           
 
Method Summary
 void close()
           
 java.io.Reader getReader()
           
 java.io.OutputStream getTee()
           
 int read(char[] aArray, int aOff, int aLen)
           
 void reInit(java.io.Reader aIn, java.io.OutputStream aTeeStream)
           
 
Methods inherited from class java.io.FilterReader
mark, markSupported, read, ready, reset, skip
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeeReader

public TeeReader(java.io.Reader aIn,
                 java.io.OutputStream aTeeStream)
Method Detail

reInit

public void reInit(java.io.Reader aIn,
                   java.io.OutputStream aTeeStream)

getReader

public java.io.Reader getReader()

getTee

public java.io.OutputStream getTee()

read

public int read(char[] aArray,
                int aOff,
                int aLen)
         throws java.io.IOException
Overrides:
read in class java.io.FilterReader
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FilterReader
Throws:
java.io.IOException


Fraid (system and language). (C) 2003-2007 Ivaylo Iliev
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.