Package monq.jfa.textparts
Interface TextSplitter
public interface TextSplitter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TextSplitteris an instance of aTextSplitterwhich does not split the incoming text at all, but appends it completely as a new part onto the givenTextStore. -
Method Summary
Modifier and TypeMethodDescriptionvoidsplit(TextStore dst, StringBuilder source, int start) separates the stretch of text defined by the suffix ofsource, starting atstartinto parts and stores the parts indst.
-
Field Details
-
NULLSPLITTER
is an instance of a
TextSplitterwhich does not split the incoming text at all, but appends it completely as a new part onto the givenTextStore. TheTextStoreis not cleared before.
-
-
Method Details
-
split
separates the stretch of text defined by the suffix of
source, starting atstartinto parts and stores the parts indst.The method normally does not clear the
TextStore, but implementations may choose to do so.Postcondition: Implementations of this method must treat
sourceread-only.
-