⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filteroutputstream.java

📁 《移动Agent技术》一书的所有章节源代码。
💻 JAVA
字号:
package java.io;

public class FilterOutputStream
    extends OutputStream {
  protected OutputStream out;
  
  protected FilterOutputStream(OutputStream underlying) {
    out = underlying;
  }
  
  public void write(int b) throws IOException {
    out.write(b);
  }
  
  public void write(byte[] b) throws IOException {
    write(b, 0, b.length);
  }
  
  public void write(byte[] b, int offset, int length) throws IOException {
    for (int i = 0; i < length; i++) {
        write(b[offset + i]);
    }
  }
  
  public void flush() throws IOException {
    out.flush();
  }
  
  public void close() throws IOException {
    out.close();
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -