filteroutputstream.java

来自「进行与数字证书相关开发必须的java源码」· Java 代码 · 共 53 行

JAVA
53
字号
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   FilterOutputStream.java

package jit.io;

import java.io.IOException;
import java.io.OutputStream;

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 + =
减小字号Ctrl + -
显示快捷键?