nu.validator.htmlparser.test
Class UntilHashInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by nu.validator.htmlparser.test.UntilHashInputStream
All Implemented Interfaces:
Closeable

public class UntilHashInputStream
extends InputStream


Field Summary
private  int buffer
           
private  StringBuilder builder
           
private  boolean closed
           
private  InputStream delegate
           
 
Constructor Summary
UntilHashInputStream(InputStream delegate)
           
 
Method Summary
 void close()
           
 int read()
           
 String toString()
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

builder

private final StringBuilder builder

delegate

private final InputStream delegate

buffer

private int buffer

closed

private boolean closed
Constructor Detail

UntilHashInputStream

public UntilHashInputStream(InputStream delegate)
                     throws IOException
Parameters:
delegate -
Throws:
IOException
Method Detail

read

public int read()
         throws IOException
Specified by:
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
See Also:
InputStream.close()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()