Class Builders
java.lang.Object
com.blackhillsoftware.smf.readerbuilder.Builders
Create specialized SmfRecordReaderBuilders - see
SmfRecordReader.logstreamBuilder(String)
etc.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SmfRecordReaderBuilder
byteArraysBuilder
(Iterable<byte[]> source) Build a SmfRecordReader with a sequence of byte arrays as the sourcestatic SmfRecordReaderBuilder
ddnameBuilder
(String ddname) Build a SmfRecordReader to read from an allocated ddnamestatic LogstreamBuilder<?>
logstreamBuilder
(String name) Build a SmfRecordReader to read from a logstreamstatic SmfRecordReaderBuilder
nameBuilder
(String name) Build a SmfRecordReader to read from a named file or datasetstatic StreamReaderBuilder<?>
streamBuilder
(InputStream stream) Build a SmfRecordReader to read from an InputStream
-
Constructor Details
-
Builders
public Builders()
-
-
Method Details
-
logstreamBuilder
Build a SmfRecordReader to read from a logstream- Parameters:
name
- the logstream name e.g. IFASMF.MYRECS- Returns:
- a
LogstreamBuilder
allowing you to specify start and end times
-
streamBuilder
Build a SmfRecordReader to read from an InputStream- Parameters:
stream
- the input stream- Returns:
- a
StreamReaderBuilder
allowing you to specify stream RECFM
-
ddnameBuilder
Build a SmfRecordReader to read from an allocated ddname- Parameters:
ddname
- the DD name- Returns:
- a
SmfRecordReaderBuilder
-
nameBuilder
Build a SmfRecordReader to read from a named file or dataset- Parameters:
name
- the file or dataset name - seeSmfRecordReader.fromName(String)
- Returns:
- a a
SmfRecordReaderBuilder
-
byteArraysBuilder
Build a SmfRecordReader with a sequence of byte arrays as the source- Parameters:
source
- an Iterable source of byte arrays- Returns:
- a a
SmfRecordReaderBuilder
-