Package org.deltafi.common.splitter
Class ContentSplitter
java.lang.Object
org.deltafi.common.splitter.ContentSplitter
Takes Content and creates a list of sub-references that point to segments of
the Content. Each sub-reference offset and size is found based upon line terminators
and the
SplitterParams that are passed in.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsplitContent(Content content, SplitterParams splitterParams) Create a list of content references based on the splitterParameters.
-
Constructor Details
-
ContentSplitter
-
-
Method Details
-
splitContent
Create a list of content references based on the splitterParameters. If includeHeaders is true the header line (excluding any comments) will be included in all segments.- Parameters:
content- Content that needs to be segmentedsplitterParams- params describing the rules for segmenting the input stream- Returns:
- a list of ContentReferences pointing to segments of the original content
-