用户:洞穴夜莺/EInputStream:修订间差异

无编辑摘要
无编辑摘要
无编辑摘要
 
@Override
public int read() {
return 'e';
}
 
@Override
public int read(byte[] b) throws IOException {
for(int i = 0; i < b.length; i++)
b[i] = (byte)'e';
 
@Override
public byte[] readAllBytes() throws IOException {
throw new OutOfMemoryError("Endless");
}
 
@Override
public int read(byte[] b, int off, int len) throws IOException {
for(int i = off; i < len + off; i++)
b[i] = (byte)'e';
 
@Override
public byte[] readNBytes(int len) throws IOException {
byte[] rval = new byte[len];
read(rval);
 
@Override
public int readNBytes(byte[] b, int off, int len) throws IOException {
return read(b, off, len);
}
 
@Override
public long skip(long n) throws IOException {
return n;
}
831

个编辑