public class StringTextSource extends Object implements TextSource
String as a single paragraph. Used when
working with text that is already split into paragraphs. This
TextSource emits OffsetLocations.| Modifier and Type | Method and Description |
|---|---|
static TextSource |
forString(String text)
Create a new source for the given
String. |
void |
parse(TextSourceEncounter encounter)
Parse the source using the given encounter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitempty, processpublic static TextSource forString(String text)
String.text - public void parse(TextSourceEncounter encounter) throws IOException
TextSourceparse in interface TextSourceIOExceptionCopyright © 2018. All rights reserved.