Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.core.io.util
Class DebugInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by eu.esdihumboldt.hale.common.core.io.util.InputStreamDecorator
          extended by 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

Constructor Summary
DebugInputStream(InputStream in)
           
 
Method Summary
 void close()
           
protected  OutputStream getOut()
          Get the output stream to write to.
 void mark(int arg0)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class eu.esdihumboldt.hale.common.core.io.util.InputStreamDecorator
available, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DebugInputStream

public DebugInputStream(InputStream in)
See Also:
InputStreamDecorator.InputStreamDecorator(InputStream)
Method Detail

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)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d