gnu.mapping
Class InPort
java.lang.Object
java.io.Reader
java.io.FilterReader
gnu.text.LineBufferedReader
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
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)
|
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 |
inLocation
public static final ThreadLocation inLocation
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
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