| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Reader
tribble.io.PassThruReader
public class PassThruReader
Pass-through character reader stream.
 Reads bytes from an underlying InputStream object, returning each byte
 as a Unicode character code.  This is effectively a character stream that
 reads ISO 8859-1 character codes as uninterpreted single-byte sequences,
 i.e., each character code is composed of a single 8-bit octet read from the
 input stream.
 
PassThruWriter| Field Summary | |
|---|---|
| protected  java.io.InputStream | m_inUnderlying byte input stream. | 
| (package private) static java.lang.String | REVRevision information. | 
| Fields inherited from class java.io.Reader | 
|---|
| lock | 
| Constructor Summary | |
|---|---|
| PassThruReader(java.io.InputStream in)Constructor. | |
| Method Summary | |
|---|---|
|  void | close()Close this input stream. | 
|  void | mark(int limit)Mark the present position in this input stream. | 
|  boolean | markSupported()Determine whether this stream supports the "mark" operation. | 
|  int | read()Read a single character. | 
|  int | read(char[] buf,
     int off,
     int len)Read a group of characters. | 
|  boolean | ready()Determine whether input is available in this input stream ro not. | 
|  void | reset()Reset the position of this input stream. | 
|  long | skip(long n)Skip (discard) a number of characters from this input stream. | 
| Methods inherited from class java.io.Reader | 
|---|
| read, read | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
static final java.lang.String REV
protected java.io.InputStream m_in
| Constructor Detail | 
|---|
public PassThruReader(java.io.InputStream in)
in - Underlying input stream, which provides a source of input bytes.| Method Detail | 
|---|
public void close()
           throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.Readerjava.io.IOException - Thrown if an I/O error occurs while closing the underlying input stream.
public int read()
         throws java.io.IOException
read in class java.io.Readerjava.io.IOException - Thrown if an I/O error occurs while reading the underlying input stream.
public int read(char[] buf,
                int off,
                int len)
         throws java.io.IOException
read in class java.io.Readerbuf - An array of Unicode characters to be read.
 Each character is read as an 8-bit character code, always in the range
 [0x0000,0x00FF].off - Index of the first character in buf to read.len - Number of characters in buf to read.
java.io.IOException - Thrown if an I/O error occurs while reading the underlying input stream.
public long skip(long n)
          throws java.io.IOException
skip in class java.io.Readern - The number of input characters to skip.
java.io.IOException - Thrown if an I/O error occurs in the underlying input stream.
public boolean ready()
              throws java.io.IOException
ready in class java.io.Readerread() is guaranteed not to block for
 input, otherwise false.  (Note that returning false does not guarantee
 that the next read will block.)
java.io.IOException - Thrown if an I/O error occurs in the underlying input stream.public boolean markSupported()
markSupported in class java.io.Readermark() method is supported, otherwise false.
public void mark(int limit)
          throws java.io.IOException
reset() will attempt to reposition the
 stream  to the marked point.
mark in class java.io.Readerlimit - The minimum number of characters that can be read while still preserving
 the position mark.  Reading more than this number of characters may cause
 the mark to become invalidated.
java.io.IOException - Thrown if this operation is not supported, or if any other I/O error
 occurs in the underlying input stream.
public void reset()
           throws java.io.IOException
mark()
 and the mark is still valid, the position is reset to that mark; otherwise
 the stream is repostioned appropriately, e.g., the to beginning of the
 stream.
reset in class java.io.Readerjava.io.IOException - Thrown if this operation is not supported, or if the mark has become
 invalidated, or if any other I/O error occurs in the underlying input
 stream.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||