Class ContentSplitter

java.lang.Object
org.deltafi.common.splitter.ContentSplitter

public class ContentSplitter extends Object
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 Details

  • Method Details

    • splitContent

      public List<ContentReference> splitContent(Content content, SplitterParams splitterParams)
      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 segmented
      splitterParams - params describing the rules for segmenting the input stream
      Returns:
      a list of ContentReferences pointing to segments of the original content