Class StreamReaderBuilder<T extends StreamReaderBuilder<T>>
java.lang.Object
com.blackhillsoftware.smf.SmfRecordReaderBuilder
com.blackhillsoftware.smf.readerbuilder.StreamReaderBuilder<T>
Build a
SmfRecordReader
to read from an InputStream.
Obtain the StreamReaderBuilder from
SmfRecordReader.streamBuilder(InputStream)
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theSmfRecordReader
.include
(int smfType) Include a SMF record type - seeSmfRecordReader.include(int)
include
(int smfType, int subtype) Include a SMF record type and subtype - seeSmfRecordReader.include(int, int)
Specify the record format for the data in this stream
-
Method Details
-
recfm
Specify the record format for the data in this stream- Parameters:
recfm
- the RecordFormat - default AUTODETECT- Returns:
- this StreamReaderBuilder to allow method chaining
-
include
Description copied from class:SmfRecordReaderBuilder
Include a SMF record type - seeSmfRecordReader.include(int)
- Specified by:
include
in classSmfRecordReaderBuilder
- Parameters:
smfType
- the SMF type to include- Returns:
- this SmfRecordReaderBuilder to allow method chaining
-
include
Description copied from class:SmfRecordReaderBuilder
Include a SMF record type and subtype - seeSmfRecordReader.include(int, int)
- Specified by:
include
in classSmfRecordReaderBuilder
- Parameters:
smfType
- the SMF type to includesubtype
- the SMF subtype to include- Returns:
- this SmfRecordReaderBuilder to allow method chaining
-
build
Description copied from class:SmfRecordReaderBuilder
Build theSmfRecordReader
. Consider calling this method in a try-with-resources statement to ensure the SmfRecordReader is closed.- Specified by:
build
in classSmfRecordReaderBuilder
- Returns:
- the resulting SmfRecordReader
- Throws:
IOException
- if an I/O error occurs
-