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


Constructor Index

 o DecodePrintableStream(InputStream)
Decodes the bytes from the input stream

Method Index

 o read()
Reads a byte
 o read(byte[])
Reads a byte array
 o read(byte[], int, int)
Reads a byte array

Constructors

 o 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

Methods

 o 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
 o 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
 o 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