org.deegree.commons.utils.io
Class LoggingInputStream
java.lang.Object
java.io.InputStream
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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingInputStream
public LoggingInputStream(InputStream in,
OutputStream out)
- Parameters:
in
- out
-
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.