1 Star 0 Fork 0

陈友程/Java

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
BufferedReader.java 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
陈友程 提交于 2021-05-24 19:42 . 输入系统
import java.io.InputStream;
import java.util.List;
class BufferedReader {
private InputStream inputStream;
private int maxBufferSize = 1024;
private byte[] buffer;
public BufferedReader(InputStream inputStream) {
this.inputStream = inputStream;
}
public BufferedReader(InputStream inputStream, int maxBufferSize) {
this.inputStream = inputStream;
this.maxBufferSize = maxBufferSize;
}
/**
* @return one byte from input stream
*/
public byte read() {
throw new IllegalStateException("Not implemented yet");
}
/**
* @return n bytes from input stream
*/
public byte[] read(int n) {
throw new IllegalStateException("Not implemented yet");
}
/**
* @return one line from input stream as String
*/
public String readLine() {
throw new IllegalStateException("Not implemented yet");
}
/**
* @return all lines from input stream as List of Strings
*/
public List<String> lines() {
throw new IllegalStateException("Not implemented yet");
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/chen-youcheng/java.git
git@gitee.com:chen-youcheng/java.git
chen-youcheng
java
Java
master

搜索帮助