public class AnsjReader extends Reader
| Constructor and Description |
|---|
AnsjReader(Reader in)
Creates a buffering character-input stream that uses a default-sized
input buffer.
|
AnsjReader(Reader in,
int sz)
Creates a buffering character-input stream that uses an input buffer of
the specified size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getStart() |
int |
read(char[] cbuf,
int off,
int len)
为了功能的单一性我还是不实现了
|
String |
readLine()
读取一行数据。ps 读取结果会忽略 \n \r
|
public AnsjReader(Reader in, int sz)
in - A Readersz - Input-buffer sizeIllegalArgumentException - If sz <= 0public AnsjReader(Reader in)
in - A Readerpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionpublic String readLine() throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionpublic int getStart()
Copyright © 2017. All rights reserved.