833
个编辑
MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针。
如果在编辑的过程中遇到了什么问题,可以去讨论板提问。
为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证。
MCBBS Wiki GitHub群组已上线!
您可以在回声洞中发表吐槽!
服务器状态监控。点击进入
本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>
无编辑摘要 |
无编辑摘要 |
||
| 第19行: | 第19行: | ||
@Override | @Override | ||
public int read(){ | public int read() { | ||
return 'e'; | return 'e'; | ||
} | } | ||
@Override | @Override | ||
public int read(byte[] b) | public int read(byte[] b) { | ||
for(int i = 0; i < b.length; i++) | for(int i = 0; i < b.length; i++) | ||
b[i] = (byte)'e'; | b[i] = (byte)'e'; | ||
| 第31行: | 第31行: | ||
@Override | @Override | ||
public byte[] readAllBytes() | public byte[] readAllBytes() { | ||
throw new OutOfMemoryError("Endless"); | throw new OutOfMemoryError("Endless"); | ||
} | } | ||
@Override | @Override | ||
public int read(byte[] b, int off, int len) | public int read(byte[] b, int off, int len) { | ||
for(int i = off; i < len + off; i++) | for(int i = off; i < len + off; i++) | ||
b[i] = (byte)'e'; | b[i] = (byte)'e'; | ||
| 第43行: | 第43行: | ||
@Override | @Override | ||
public byte[] readNBytes(int len) | public byte[] readNBytes(int len) { | ||
byte[] rval = new byte[len]; | byte[] rval = new byte[len]; | ||
read(rval); | read(rval); | ||
| 第50行: | 第50行: | ||
@Override | @Override | ||
public int readNBytes(byte[] b, int off, int len) | public int readNBytes(byte[] b, int off, int len) { | ||
return read(b, off, len); | return read(b, off, len); | ||
} | } | ||
@Override | @Override | ||
public long skip(long n) | public long skip(long n) { | ||
return n; | return n; | ||
} | } | ||
个编辑