|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.lth.cs.nlp.nlputils.annotations.AnnotationType
public abstract class AnnotationType
This class is inherited by factories of annotation types.
Constructor Summary | |
---|---|
AnnotationType()
|
Method Summary | |
---|---|
AnnotatedText |
createLayers(InputStream in)
Reads and parses an AnnotatedText from the given InputStream, using the format of the inheriting AnnotationType. |
AnnotatedText |
createLayers(String s)
Reads and parses an AnnotatedText from a string, using the format of the inheriting AnnotationType. |
void |
printLayers(OutputStream out,
AnnotatedText text)
Prints an AnnotatedText to an OutputStream using the format of the inheriting AnnotationType. |
void |
printLayers(OutputStream out,
String text,
List<AnnotationLayer> l)
Prints a list of layers on a text to an OutputStream using the format of the inheriting AnnotationType. |
void |
printLayers(PrintWriter out,
AnnotatedText text)
Prints an AnnotatedText to a PrintWriter using the format of the inheriting AnnotationType. |
void |
printLayers(PrintWriter out,
String text,
List<AnnotationLayer> l)
Prints a list of layers on a text to a PrintWriter using the format of the inheriting AnnotationType. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationType()
Method Detail |
---|
public AnnotatedText createLayers(InputStream in) throws IOException
in
- the input stream.
IOException
public AnnotatedText createLayers(String s) throws IOException
s
- the string.
IOException
public void printLayers(PrintWriter out, String text, List<AnnotationLayer> l) throws IOException
out
- the writer.text
- the text.l
- the list of layers.
IOException
public void printLayers(PrintWriter out, AnnotatedText text) throws IOException
out
- the writer.text
- the AnnotatedText.
IOException
public void printLayers(OutputStream out, String text, List<AnnotationLayer> l) throws IOException
out
- the output stream.text
- the text.l
- the list of layers.
IOException
public void printLayers(OutputStream out, AnnotatedText text) throws IOException
out
- the output stream.text
- the AnnotatedText.
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |