gnu.mapping
Class InPort

java.lang.Object
  extended by java.io.Reader
      extended by java.io.FilterReader
          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, limit, lineNumber, markPos, pos, readAheadLimit, readState
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
InPort(java.io.InputStream in)
           
InPort(java.io.InputStream in, java.lang.String name)
           
InPort(java.io.InputStream in, java.lang.String name, java.lang.Object conv)
           
InPort(java.io.Reader in)
           
InPort(java.io.Reader in, java.lang.String name)
           
 
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.String fname)
           
static InPort openFile(java.lang.String fname)
           
 void print(java.io.PrintWriter ps)
           
static void setInDefault(InPort in)
           
 
Methods inherited from class gnu.text.LineBufferedReader
fill, getColumnNumber, getConvertCR, getLineNumber, getName, getReadState, lineStart, mark, markSupported, peek, read, read, readLine, readLine, ready, reset, setBuffer, setConvertCR, setLineNumber, setName, skip_quick, skip, skip, unread_quick, unread
 
Methods inherited from class java.io.FilterReader
close, skip
 
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

inLocation

public static final ThreadLocation inLocation
Constructor Detail

InPort

public InPort(java.io.Reader in)

InPort

public InPort(java.io.Reader in,
              java.lang.String name)

InPort

public InPort(java.io.InputStream in)

InPort

public InPort(java.io.InputStream in,
              java.lang.String name)

InPort

public InPort(java.io.InputStream in,
              java.lang.String name,
              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.String fname)
                       throws java.io.UnsupportedEncodingException,
                              java.io.FileNotFoundException
Throws:
java.io.UnsupportedEncodingException
java.io.FileNotFoundException

openFile

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

print

public void print(java.io.PrintWriter ps)
Specified by:
print in interface Printable