1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.vfs.internal.attach; |
21 |
|
|
22 |
|
import java.io.IOException; |
23 |
|
import java.io.OutputStream; |
24 |
|
|
25 |
|
import javax.annotation.concurrent.NotThreadSafe; |
26 |
|
|
27 |
|
import net.java.truecommons.cio.AbstractOutputSocket; |
28 |
|
import net.java.truecommons.cio.Entry; |
29 |
|
import net.java.truecommons.cio.InputSocket; |
30 |
|
import net.java.truecommons.shed.BitField; |
31 |
|
import net.java.truevfs.kernel.spec.FsAccessOption; |
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
@version |
37 |
|
@since |
38 |
|
|
39 |
|
@NotThreadSafe |
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 3 |
Complexity Density: 1 |
|
40 |
|
public class AttachOutputSocket extends AbstractOutputSocket<AttachNode> |
41 |
|
{ |
42 |
|
private final AttachNode entry; |
43 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
44 |
0 |
AttachOutputSocket(BitField<FsAccessOption> options, AttachNode entry, Entry template)... |
45 |
|
{ |
46 |
0 |
this.entry = entry; |
47 |
|
} |
48 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
49 |
0 |
@Override... |
50 |
|
public AttachNode target() |
51 |
|
{ |
52 |
0 |
return entry; |
53 |
|
} |
54 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
55 |
0 |
@Override... |
56 |
|
public OutputStream stream(final InputSocket<? extends Entry> peer) throws IOException |
57 |
|
{ |
58 |
0 |
return entry.newOutputStream(); |
59 |
|
} |
60 |
|
} |