public class QueueInputStream extends InputStream
构造器和说明 |
---|
QueueInputStream(InputStream is) |
限定符和类型 | 方法和说明 |
---|---|
int |
getCol() |
int |
getRow() |
boolean |
isEnd()
是否结束
|
int |
peek()
访问头部字节, 不删除
|
int |
peek(int index)
访问头部开始第几个字节, 不删除
|
int |
peekNext()
访问上次peekNext访问的下个位置的字节, 未访问过则访问索引0, poll, peek后归零, 不删除
|
int |
poll()
读取头部字节, 并删除
|
int |
read() |
String |
readItem(char... ends)
读取一项数据
|
String |
readLine()
读取一行
|
long |
skip(long n)
跳过和丢弃输入流中的数据
|
boolean |
startWith(String start)
是否以 start 开始
|
available, close, mark, markSupported, read, read, reset
public QueueInputStream(InputStream is)
public int read() throws IOException
read
在类中 InputStream
IOException
public String readItem(char... ends) throws IOException
ends
- 结束符, 默认' ', '\r', '\n'IOException
public String readLine() throws IOException
IOException
public int poll() throws IOException
IOException
public int peek(int index) throws IOException
index
- IOException
public int peekNext() throws IOException
IOException
public int peek() throws IOException
IOException
public long skip(long n) throws IOException
skip
在类中 InputStream
IOException
public boolean isEnd()
public boolean startWith(String start) throws IOException
start
- IOException
public int getCol()
public int getRow()
Copyright © 2017. All rights reserved.