OutputStream的close为空方法
如例子
贴源码
public
class DataOutputStream extends FilterOutputStream implements DataOutput {
}
public
class FilterOutputStream extends OutputStream {
/**
* The underlying output stream to be filtered.
*/
protected OutputStream out;
public void close() throws IOException {
try {
flush();
} catch (IOException ignored) {
}
out.close();
}
}
public abstract class OutputStream implements Closeable, Flushable {
public void close() throws IOException {
}
}
InputStream close()空方法
标签:OutputStream,io,void,class,IOException,关闭,close,public From: https://blog.51cto.com/u_1481758/7479172