File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
src/main/java/org/culturegraph/mf/stream/sink Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 23
23
import org .culturegraph .mf .framework .ObjectReceiver ;
24
24
import org .culturegraph .mf .framework .annotations .Description ;
25
25
import org .culturegraph .mf .framework .annotations .In ;
26
+ import org .culturegraph .mf .framework .annotations .Out ;
26
27
import org .culturegraph .mf .framework .annotations .ReturnsAvailableArguments ;
27
28
28
29
36
37
37
38
@ Description ("Writes objects to stdout or a file" )
38
39
@ In (Object .class )
40
+ @ Out (Void .class )
39
41
public final class ObjectWriter <T > implements ObjectReceiver <T > {
40
42
41
43
private static final String STDOUT = "stdout" ;
Original file line number Diff line number Diff line change 27
27
import org .culturegraph .mf .framework .DefaultObjectReceiver ;
28
28
import org .culturegraph .mf .framework .annotations .Description ;
29
29
import org .culturegraph .mf .framework .annotations .In ;
30
+ import org .culturegraph .mf .framework .annotations .Out ;
30
31
import org .culturegraph .mf .types .Triple ;
31
32
32
33
/**
46
47
+ "within `baseDir`. THIS MODULE SHOULD NOT BE USED IN ENVIRONMENTS IN WHICH "
47
48
+ "THE VALUES OF SUBJECT AND PREDICATE A PROVIDED BY AN UNTRUSTED SOURCE!" )
48
49
@ In (Triple .class )
50
+ @ Out (Void .class )
49
51
public final class TripleObjectWriter extends DefaultObjectReceiver <Triple > {
50
52
51
53
private final String baseDir ;
Original file line number Diff line number Diff line change 22
22
23
23
import org .culturegraph .mf .exceptions .MetafactureException ;
24
24
import org .culturegraph .mf .framework .DefaultObjectReceiver ;
25
+ import org .culturegraph .mf .framework .annotations .Description ;
26
+ import org .culturegraph .mf .framework .annotations .In ;
27
+ import org .culturegraph .mf .framework .annotations .Out ;
25
28
import org .culturegraph .mf .types .Triple ;
26
29
27
30
/**
28
31
* @author Christoph Böhme
29
32
*
30
33
*/
34
+ @ Description ("Writes triples into a file." )
35
+ @ In (Triple .class )
36
+ @ Out (Void .class )
31
37
public final class TripleWriter extends DefaultObjectReceiver <Triple > {
32
38
33
39
public static final int BUFFERSIZE = 2048 ;
You can’t perform that action at this time.
0 commit comments