All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.habanero.streams.DecodePrintableStream
java.lang.Object
|
+----java.io.InputStream
|
+----java.io.FilterInputStream
|
+----ncsa.habanero.streams.DecodePrintableStream
- public class DecodePrintableStream
- extends FilterInputStream
DecodePrintableStream
A class to convert a printable byte stream that arrives at it to a
normal byte stream
-
DecodePrintableStream(InputStream)
- Decodes the bytes from the input stream
-
read()
- Reads a byte
-
read(byte[])
- Reads a byte array
-
read(byte[], int, int)
- Reads a byte array
DecodePrintableStream
public DecodePrintableStream(InputStream in) throws IOException
- Decodes the bytes from the input stream
- Parameters:
- in - where we are reading the data from
- Throws: IOException
- if the parent throws the exception
read
public int read() throws IOException
- Reads a byte
- Parameters:
- b - the 4 bytes to be printed
- Throws: IOException
- throws an exception if it is
unable to write the bytes
- Overrides:
- read in class FilterInputStream
read
public int read(byte b[]) throws IOException
- Reads a byte array
- Parameters:
- b - the byte array
- Returns:
- the number of bytes read, -1 if none
- Throws: IOException
- throws an exception if it is
unable to read the bytes
- Overrides:
- read in class FilterInputStream
read
public int read(byte b[],
int off,
int len) throws IOException
- Reads a byte array
- Parameters:
- b - the byte array
- Returns:
- the number of bytes read, -1 if none
- Throws: IOException
- throws an exception if it is
unable to read the bytes
- Overrides:
- read in class FilterInputStream
All Packages Class Hierarchy This Package Previous Next Index