eu.esdihumboldt.hale.common.core.io.util
Class DebugInputStream
java.lang.Object
java.io.InputStream
eu.esdihumboldt.hale.common.core.io.util.InputStreamDecorator
eu.esdihumboldt.hale.common.core.io.util.DebugInputStream
- All Implemented Interfaces:
- Closeable
public class DebugInputStream
- extends InputStreamDecorator
Input stream for debugging purposes. Writes read bytes to a file so it can be
reproduced what was read.
- Author:
- Simon Templer
DebugInputStream
public DebugInputStream(InputStream in)
- See Also:
InputStreamDecorator.InputStreamDecorator(InputStream)
getOut
protected OutputStream getOut()
- Get the output stream to write to.
- Returns:
- the output stream, may be
null
if it could not be
created
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStreamDecorator
- Throws:
IOException
- See Also:
InputStream.close()
mark
public void mark(int arg0)
- Overrides:
mark
in class InputStreamDecorator
- See Also:
InputStream.mark(int)
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class InputStreamDecorator
- See Also:
InputStream.markSupported()
read
public int read()
throws IOException
- Overrides:
read
in class InputStreamDecorator
- Throws:
IOException
- See Also:
InputStream.read()
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class InputStreamDecorator
- Throws:
IOException
- See Also:
InputStream.read(byte[], int, int)
read
public int read(byte[] b)
throws IOException
- Overrides:
read
in class InputStreamDecorator
- Throws:
IOException
- See Also:
InputStream.read(byte[])
reset
public void reset()
throws IOException
- Overrides:
reset
in class InputStreamDecorator
- Throws:
IOException
- See Also:
InputStream.reset()
skip
public long skip(long n)
throws IOException
- Overrides:
skip
in class InputStreamDecorator
- Throws:
IOException
- See Also:
InputStream.skip(long)
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d