zoukankan      html  css  js  c++  java
  • commons-io ProxyInputStream,ProxyOutputStream,ProxyReader,ProxyWriter

    1.ProxyInputStream:

    A Proxy stream which acts as expected, that is it passes the method calls on to the proxied stream and doesn't change which methods are being called.

    It is an alternative base class to FilterInputStream to increase reusability, because FilterInputStream changes the methods being called, such as read(byte[]) to read(byte[], int, int).

    See the protected methods for ways in which a subclass can easily decorate a stream with custom pre-, post- or error processing functionality.

    翻译:

    处理字节。

    一个代理stream,作用:将方法调用传递给proxy stream并且不改变被调用的方法。

    FilterInputStream改变被调用方法的状态,ProxyInputStream增加FilterInputStream的可重用性。

    子类通过实现pre-,post-,error等方法可以很方便的装饰ProxyInputStream。

    2.ProxyReader:

    处理字符。

    其他同上。

    3.ProxyOutputStream

    同ProxyInputStream。

    4.ProxyWriter

    同ProxyReader

  • 相关阅读:
    MFC中动态控件的创建与响应
    fseek函数
    fullPage.js插件用法(转发)
    二级联动
    ajax_异步交互-get/post方式
    02_数据类型转换-小结
    01_创建对象的三种方法
    分布式与集群
    FSM
    开发一个第三方库的一般性和团队特定规则
  • 原文地址:https://www.cnblogs.com/selfchange/p/6062604.html
Copyright © 2011-2022 走看看