blob: 4c46f1ec005d716ec1f68357571429ba985fe790 (
plain)
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
|
namespace SharpCifs.Util.Sharpen
{
internal class PipedOutputStream : OutputStream
{
PipedInputStream _ips;
public PipedOutputStream ()
{
}
public PipedOutputStream (PipedInputStream iss) : this()
{
Attach (iss);
}
public override void Close ()
{
_ips.Close ();
base.Close ();
}
internal void Attach (PipedInputStream iss)
{
_ips = iss;
}
public override void Write (int b)
{
_ips.Write (b);
}
public override void Write (byte[] b, int offset, int len)
{
_ips.Write (b, offset, len);
}
}
}
|