OutputStreamImpl.java
1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* 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);
}
}