OutputStreamImpl.java 1.05 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.internal.io.stream;

import com.adobe.internal.io.stream.OutputByteStream;
import com.adobe.internal.io.stream.SkippingOutputStream;
import java.io.IOException;

class OutputStreamImpl
extends SkippingOutputStream {
    OutputByteStream obs;

    OutputStreamImpl(OutputByteStream obs) {
        this.obs = obs;
    }

    @Override
    public void close() throws IOException {
        super.close();
        this.obs = null;
    }

    @Override
    public void flush() throws IOException {
        this.obs.flush();
    }

    @Override
    public void write(int b) throws IOException {
        this.obs.write(b);
    }

    @Override
    public void write(byte[] b, int off, int len) throws IOException {
        this.obs.write(b, off, len);
    }

    @Override
    public void write(byte[] b) throws IOException {
        this.obs.write(b);
    }

    @Override
    public void skip(long count) throws IOException {
        long position = this.obs.getPosition();
        this.obs.seek(position + count);
    }
}