public class FirstTokenURLTextInputter extends URLTextInputter implements TextInputter
loadedText
Constructor and Description |
---|
FirstTokenURLTextInputter() |
Modifier and Type | Method and Description |
---|---|
void |
loadText(java.lang.String str)
Loads text from a string, keeping only first token on each line.
|
void |
loadText(java.net.URL url,
java.lang.String encoding)
Loads text from a URL, keeping only first token on each line.
|
enableGapFixer, enableOrigFixer, enableSplitWordsFixer, getSegmentCount, getSegmentName, getSegmentText, getSegmentText, loadText, loadText, setSegmentText, setSegmentText, setSegmentText, setSegmentText, usesSegmentFiles
close
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enableGapFixer, enableOrigFixer, enableSplitWordsFixer, getSegmentCount, getSegmentName, getSegmentText, getSegmentText, loadText, loadText, setSegmentText, setSegmentText, setSegmentText, setSegmentText, usesSegmentFiles
public void loadText(java.net.URL url, java.lang.String encoding) throws java.io.IOException
loadText
in interface TextInputter
loadText
in class URLTextInputter
url
- URL from which to read text.encoding
- Text encoding.java.io.IOException
- If an output error occurs.public void loadText(java.lang.String str) throws java.lang.Exception
loadText
in interface TextInputter
loadText
in class URLTextInputter
str
- String from which to read text.java.io.IOException
- If an error occurs.java.lang.Exception