org.tinyjee.maven.dim.sources
Class AbstractStreamingSnippetSelector

java.lang.Object
  extended by org.tinyjee.maven.dim.sources.AbstractSnippetSelector
      extended by org.tinyjee.maven.dim.sources.AbstractStreamingSnippetSelector
All Implemented Interfaces:
SnippetSelector
Direct Known Subclasses:
GrepLikeSnippetSelector, IdSnippetSelector, RegularExpressionSnippetSelector, TokenAndBraceSnippetSelector

public abstract class AbstractStreamingSnippetSelector
extends AbstractSnippetSelector

Implements an abstract base for snippet selectors that implement everything using stream processing, rather than trying to buffer the results in memory.

Author:
Juergen_Kellerer, 2011-10-14

Nested Class Summary
protected static class AbstractStreamingSnippetSelector.AbstractStreamIterator<E>
          Is the actual base for line number iterators that directly operate on the content stream.
 
Field Summary
 
Fields inherited from class org.tinyjee.maven.dim.sources.AbstractSnippetSelector
expressionPrefix
 
Fields inherited from interface org.tinyjee.maven.dim.spi.SnippetSelector
CASE_SENSITIVE, EXPAND_SNIPPETS, SELECTORS
 
Constructor Summary
protected AbstractStreamingSnippetSelector(String expressionPrefix)
          Constructs a new instance with the given expression-prefix.
 
Method Summary
 
Methods inherited from class org.tinyjee.maven.dim.sources.AbstractSnippetSelector
assertExpressionIsValid, canSelectSnippetsWith, getExpressionPrefixes, stripPrefix, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.tinyjee.maven.dim.spi.SnippetSelector
selectSnippets
 

Constructor Detail

AbstractStreamingSnippetSelector

protected AbstractStreamingSnippetSelector(String expressionPrefix)
Constructs a new instance with the given expression-prefix.

Parameters:
expressionPrefix - the prefix to use for detecting expressions belonging to this selector.