anvil.java.io
Class GenericInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--anvil.java.io.GenericInputStream

public final class GenericInputStream
extends java.io.InputStream

GenericInputStream


Constructor Summary
GenericInputStream(byte[] array)
           
GenericInputStream(java.io.InputStream input)
           
GenericInputStream(java.io.InputStream input, int bufferSize)
           
 
Method Summary
 int available()
           
 void close()
           
 int getColumnNumber()
           
 int getLineNumber()
           
 int pos()
           
 int read()
           
 int read(byte[] target, int offset, int length)
           
 java.lang.String read(int amount)
           
 java.lang.String readLine()
           
 long skip(long amount)
           
 java.lang.String toString()
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericInputStream

public GenericInputStream(byte[] array)

GenericInputStream

public GenericInputStream(java.io.InputStream input)

GenericInputStream

public GenericInputStream(java.io.InputStream input,
                          int bufferSize)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

available

public final int available()
                    throws java.io.IOException
Overrides:
available in class java.io.InputStream
java.io.IOException

read

public final int read(byte[] target,
                      int offset,
                      int length)
               throws java.io.IOException
Overrides:
read in class java.io.InputStream
java.io.IOException

read

public final int read()
               throws java.io.IOException
Specified by:
read in class java.io.InputStream
java.io.IOException

readLine

public final java.lang.String readLine()
                                throws java.io.IOException
java.io.IOException

read

public final java.lang.String read(int amount)
                            throws java.io.IOException
java.io.IOException

skip

public final long skip(long amount)
                throws java.io.IOException
Overrides:
skip in class java.io.InputStream
java.io.IOException

getColumnNumber

public final int getColumnNumber()

getLineNumber

public final int getLineNumber()

close

public final void close()
                 throws java.io.IOException
Overrides:
close in class java.io.InputStream
java.io.IOException

pos

public final int pos()