public class BufferedLineReaderInputStream extends LineReaderInputStream
Description:
Title:首亨软件 - TSS/CRM等
构造器和说明 |
---|
BufferedLineReaderInputStream(java.io.InputStream instream,
int buffersize) |
BufferedLineReaderInputStream(java.io.InputStream instream,
int buffersize,
int maxLineLen) |
限定符和类型 | 方法和说明 |
---|---|
int |
byteAt(int pos) |
int |
capacity() |
void |
ensureCapacity(int len) |
int |
fillBuffer() |
boolean |
hasBufferedData() |
int |
indexOf(byte b) |
int |
indexOf(byte[] pattern)
Implements quick search algorithm as published by
SUNDAY D.M., 1990,
A very fast substring search algorithm,
Communications of the ACM . 33(8):132-142.
|
int |
indexOf(byte[] pattern,
int off,
int len) |
int |
indexOf(byte b,
int off,
int len) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
int |
readLine(ByteArrayBuffer dst)
Reads one line of text into the given
ByteArrayBuffer . |
java.lang.String |
toString() |
void |
truncate() |
boolean |
unread(ByteArrayBuffer buf)
Tries to unread the last read line.
|
public BufferedLineReaderInputStream(java.io.InputStream instream, int buffersize, int maxLineLen)
public BufferedLineReaderInputStream(java.io.InputStream instream, int buffersize)
public void ensureCapacity(int len)
public int fillBuffer() throws java.io.IOException
java.io.IOException
public boolean hasBufferedData()
public void truncate()
public int read() throws java.io.IOException
read
在类中 java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
在类中 java.io.FilterInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
在类中 java.io.FilterInputStream
java.io.IOException
public boolean markSupported()
markSupported
在类中 java.io.FilterInputStream
public int readLine(ByteArrayBuffer dst) throws MaxLineLimitException, java.io.IOException
LineReaderInputStream
ByteArrayBuffer
.readLine
在类中 LineReaderInputStream
dst
- Destination-1
if the end of
the stream has been reached.MaxLineLimitException
- if the line exceeds a limit on
the line length imposed by a subclass.java.io.IOException
- in case of an I/O error.public int indexOf(byte[] pattern, int off, int len)
public int indexOf(byte[] pattern)
SUNDAY D.M., 1990, A very fast substring search algorithm, Communications of the ACM . 33(8):132-142.
pattern
- byte[]public int indexOf(byte b, int off, int len)
public int indexOf(byte b)
public int byteAt(int pos)
public int capacity()
public java.lang.String toString()
toString
在类中 java.lang.Object
public boolean unread(ByteArrayBuffer buf)
LineReaderInputStream
unread
在类中 LineReaderInputStream
buf
- ByteArrayBuffer