public class LineReaderInputStreamAdaptor extends LineReaderInputStream
Description:
Title:首亨软件 - TSS/CRM等
构造器和说明 |
---|
LineReaderInputStreamAdaptor(java.io.InputStream is) |
LineReaderInputStreamAdaptor(java.io.InputStream is,
int maxLineLen) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
eof() |
boolean |
isUsed() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
int |
readLine(ByteArrayBuffer dst)
Reads one line of text into the given
ByteArrayBuffer . |
long |
skip(long count) |
java.lang.String |
toString() |
boolean |
unread(ByteArrayBuffer buf)
Tries to unread the last read line.
|
public LineReaderInputStreamAdaptor(java.io.InputStream is, int maxLineLen)
public LineReaderInputStreamAdaptor(java.io.InputStream is)
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 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 boolean eof()
public boolean isUsed()
public java.lang.String toString()
toString
在类中 java.lang.Object
public boolean unread(ByteArrayBuffer buf)
LineReaderInputStream
unread
在类中 LineReaderInputStream
buf
- ByteArrayBufferpublic long skip(long count) throws java.io.IOException
skip
在类中 java.io.FilterInputStream
java.io.IOException