inLocation
buffer, BUFFER_SIZE, in, limit, lineNumber, markPos, pos, readAheadLimit, readState
Constructor and Description |
---|
BinaryInPort(byte[] buffer,
int length,
Path path) |
BinaryInPort(java.io.InputStream strm,
Path path) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected int |
fill(int len)
Called by
read() when it needs its buffer filled. |
static BinaryInPort |
openFile(java.lang.Object fname) |
int |
peekByte() |
int |
readByte() |
int |
readBytes(byte[] buf,
int offset,
int count) |
int |
readByteVector(ByteVector bvector,
int offset,
int count) |
protected boolean |
sourceReady() |
inDefault, openFile, openFile, openFile, print, setInDefault
getColumnNumber, getConvertCR, getLineNumber, getName, getPath, getReadState, incrLineNumber, isOpen, lineStart, mark, markSupported, peek, peekCodePoint, peekCodePoint, read, read, readCodePoint, readCodePoint, readLine, readLine, ready, reset, setBuffer, setConvertCR, setKeepFullLines, setLineNumber, setName, setPath, skip_quick, skip, skip, skipRestOfLine, unread_quick, unread
public BinaryInPort(java.io.InputStream strm, Path path)
public BinaryInPort(byte[] buffer, int length, Path path)
protected int fill(int len) throws java.io.IOException
LineBufferedReader
read()
when it needs its buffer filled.
Read characters into buffer, starting at pos, for len.
Can assume that len > 0
. Only called if pos>=limit
.
Return -1 if EOF, otherwise number of read chars.
This can be usefully overridden by sub-classes.fill
in class LineBufferedReader
java.io.IOException
public int readByte() throws java.io.IOException
java.io.IOException
public int peekByte() throws java.io.IOException
java.io.IOException
public int readBytes(byte[] buf, int offset, int count) throws java.io.IOException
java.io.IOException
public int readByteVector(ByteVector bvector, int offset, int count) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class LineBufferedReader
java.io.IOException
protected boolean sourceReady() throws java.io.IOException
sourceReady
in class LineBufferedReader
java.io.IOException
public static BinaryInPort openFile(java.lang.Object fname) throws java.io.IOException
java.io.IOException