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_SIZE, buffer, in, limit, lineNumber, markPos, pos, readAheadLimit, readState

Constructor Summary

InPort(InputStream in)
InPort(InputStream in, Path path)
InPort(InputStream in, Path path, Object conv)
InPort(Reader in)
InPort(Reader in, Path path)

Method Summary

static Reader
convertToReader(InputStream in, Object conv)
static InPort
inDefault()
static InPort
openFile(InputStream strm, Object fname)
static InPort
openFile(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, skip, skipRestOfLine, 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,
              Path path)

InPort

public InPort(InputStream in,
              Path path,
              Object conv)
            throws java.io.UnsupportedEncodingException

InPort

public InPort(Reader in)

InPort

public InPort(Reader in,
              Path path)

Method Details

convertToReader

public static Reader convertToReader(InputStream in,
                                     Object conv)

inDefault

public static InPort inDefault()

openFile

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

openFile

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

print

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

setInDefault

public static void setInDefault(InPort in)