org.deegree.commons.utils.io
Class LoggingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.deegree.commons.utils.io.LoggingInputStream
All Implemented Interfaces:
Closeable

public class LoggingInputStream
extends InputStream

Writes back all bytes that are read into an output stream.

Version:
$Revision: 27469 $, $Date: 2010-10-21 11:47:04 +0200 (Thu, 21 Oct 2010) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Constructor Summary
LoggingInputStream(InputStream in, OutputStream out)
           
 
Method Summary
 int available()
           
 void close()
           
 int read()
           
 int read(byte[] bs)
           
 int read(byte[] bs, int off, int len)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingInputStream

public LoggingInputStream(InputStream in,
                          OutputStream out)
Parameters:
in -
out -
Method Detail

available

public int available()
              throws IOException
Overrides:
available in class InputStream
Throws:
IOException

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

read

public int read(byte[] bs)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

read

public int read(byte[] bs,
                int off,
                int len)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException


Copyright © 2011. All Rights Reserved.