gnu.mapping

Class InPort

Implemented Interfaces:
Printable
Known Direct 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

Constructor Summary

InPort(InputStream in)
InPort(InputStream in, String name)
InPort(InputStream in, String name, Object conv)
InPort(Reader in)
InPort(Reader in, String name)

Method Summary

static Reader
convertToReader(InputStream in, Object conv)
static InPort
inDefault()
static InPort
openFile(InputStream strm, String fname)
static InPort
openFile(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, skip, skip_quick, unread, unread_quick

Field Details

inLocation

public static final ThreadLocation inLocation

Constructor Details

InPort

public InPort(InputStream in)

InPort

public InPort(InputStream in,
              String name)

InPort

public InPort(InputStream in,
              String name,
              Object conv)
            throws java.io.UnsupportedEncodingException

InPort

public InPort(Reader in)

InPort

public InPort(Reader in,
              String name)

Method Details

convertToReader

public static Reader convertToReader(InputStream in,
                                     Object conv)

inDefault

public static InPort inDefault()

openFile

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

openFile

public static InPort openFile(String fname)
            throws java.io.UnsupportedEncodingException,
                   java.io.FileNotFoundException

print

public void print(java.io.PrintWriter ps)

setInDefault

public static void setInDefault(InPort in)