inLocationbuffer, 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, setInDefaultgetColumnNumber, 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, unreadpublic BinaryInPort(java.io.InputStream strm,
Path path)
public BinaryInPort(byte[] buffer,
int length,
Path path)
protected int fill(int len)
throws java.io.IOException
LineBufferedReaderread() 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 LineBufferedReaderjava.io.IOExceptionpublic int readByte()
throws java.io.IOException
java.io.IOExceptionpublic int peekByte()
throws java.io.IOException
java.io.IOExceptionpublic int readBytes(byte[] buf,
int offset,
int count)
throws java.io.IOException
java.io.IOExceptionpublic int readByteVector(ByteVector bvector, int offset, int count) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class LineBufferedReaderjava.io.IOExceptionprotected boolean sourceReady()
throws java.io.IOException
sourceReady in class LineBufferedReaderjava.io.IOExceptionpublic static BinaryInPort openFile(java.lang.Object fname) throws java.io.IOException
java.io.IOException