com.ptc.windchill.upgrade.util
Class BufferedLineReader.BufferedLineInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended bycom.ptc.windchill.upgrade.util.BufferedLineReader.BufferedLineInputStream
Enclosing class:
BufferedLineReader

private class BufferedLineReader.BufferedLineInputStream
extends InputStream


Field Summary
 
Fields inherited from class java.io.InputStream
 
Constructor Summary
(package private) BufferedLineReader.BufferedLineInputStream()
           
 
Method Summary
 int read()
          Required public by the parent InputStream class.
 boolean ready()
          Determine if a full line (with a '\n' terminator) is in the buffer.
 boolean ready2()
          Is a full line (with a general terminator) in the buffer?
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedLineReader.BufferedLineInputStream

BufferedLineReader.BufferedLineInputStream()
Method Detail

read

public int read()
         throws IOException
Required public by the parent InputStream class. Reads one byte.

Returns:
One byte.
Throws:
IOException

ready

public boolean ready()
              throws IOException
Determine if a full line (with a '\n' terminator) is in the buffer. Overwrites a method in the parent InputStream class.

Returns:
A true if a full line (with a '\n' terminator) is in the buffer.
Throws:
IOException

ready2

public boolean ready2()
               throws IOException
Is a full line (with a general terminator) in the buffer?

Returns:
A true if a full line (with a general terminator) is in the buffer.
Throws:
IOException