org.deegree.commons.utils.io
Class LoggingInputStream
java.lang.Object
java.io.InputStream
org.deegree.commons.utils.io.LoggingInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class LoggingInputStream
- extends java.io.InputStream
Writes back all bytes that are read into an output stream.
- Version:
- $Revision: 27469 $, $Date: 2010-10-21 11:47:04 +0200 (Do, 21. Okt 2010) $
- Author:
- Andreas Schmitz, last edited by: $Author: aschmitz $
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 |
LoggingInputStream
public LoggingInputStream(java.io.InputStream in,
java.io.OutputStream out)
- Parameters:
in
- out
-
available
public int available()
throws java.io.IOException
- Overrides:
available
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] bs)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] bs,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- 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.InputStream
- Throws:
java.io.IOException
Copyright © 2011. All Rights Reserved.