gnu.mapping
Class InPort

java.lang.Object
  extended by java.io.Reader
      extended by gnu.text.LineBufferedReader
          extended by gnu.mapping.InPort
All Implemented Interfaces:
Printable, java.io.Closeable, java.lang.Readable
Direct Known Subclasses:
BufferReader, CharArrayInPort, MarkerReader, TtyInPort

public class InPort
extends LineBufferedReader
implements Printable


Field Summary
static ThreadLocation inLocation
           
 
Fields inherited from class gnu.text.LineBufferedReader
buffer, BUFFER_SIZE, in, limit, lineNumber, markPos, pos, readAheadLimit, readState
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
InPort(java.io.InputStream in)
           
InPort(java.io.InputStream in, Path path)
           
InPort(java.io.InputStream in, Path path, java.lang.Object conv)
           
InPort(java.io.Reader in)
           
InPort(java.io.Reader in, Path path)
           
 
Method Summary
static java.io.Reader convertToReader(java.io.InputStream in, java.lang.Object conv)
           
static InPort inDefault()
           
static InPort openFile(java.io.InputStream strm, java.lang.Object fname)
           
static InPort openFile(java.lang.Object fname)
           
 void print(Consumer out)
           
static void setInDefault(InPort in)
           
 
Methods inherited from class gnu.text.LineBufferedReader
close, fill, getColumnNumber, getConvertCR, getLineNumber, getName, getPath, getReadState, incrLineNumber, lineStart, mark, markSupported, peek, read, read, readLine, readLine, ready, reset, setBuffer, setConvertCR, setKeepFullLines, setLineNumber, setName, setPath, skip_quick, skip, skip, skipRestOfLine, unread_quick, unread
 
Methods inherited from class java.io.Reader
read, read, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inLocation

public static final ThreadLocation inLocation
Constructor Detail

InPort

public InPort(java.io.Reader in)

InPort

public InPort(java.io.Reader in,
              Path path)

InPort

public InPort(java.io.InputStream in)

InPort

public InPort(java.io.InputStream in,
              Path path)

InPort

public InPort(java.io.InputStream in,
              Path path,
              java.lang.Object conv)
       throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException
Method Detail

convertToReader

public static java.io.Reader convertToReader(java.io.InputStream in,
                                             java.lang.Object conv)

inDefault

public static InPort inDefault()

setInDefault

public static void setInDefault(InPort in)

openFile

public static InPort openFile(java.lang.Object fname)
                       throws java.io.IOException
Throws:
java.io.IOException

openFile

public static InPort openFile(java.io.InputStream strm,
                              java.lang.Object fname)
                       throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

print

public void print(Consumer out)
Specified by:
print in interface Printable