|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.clarin.weblicht.wlfxb.io.ExternalDataWithTextCorpusStreamed
public class ExternalDataWithTextCorpusStreamed
Class ExternalDataWithTextCorpusStreamed represents TCF TextCorpus
and ExternalData annotations. The class is used for accessing specified
annotation layers and (optionally) adding any new annotation layers from/to
TextCorpus and/or ExternalData. Only specified in the constructor
annotation layers are loaded into the memory. In case all the annotation
layers should be loaded into the memory, use WLData class.
| Constructor Summary | |
|---|---|
ExternalDataWithTextCorpusStreamed(InputStream inputStream,
EnumSet<ExternalDataLayerTag> edLayersToRead,
EnumSet<TextCorpusLayerTag> tcLayersToRead)
Creates a ExternalDataWithTextCorpusStreamed from the given TCF input stream and specified annotation layers. |
|
ExternalDataWithTextCorpusStreamed(InputStream inputStream,
EnumSet<ExternalDataLayerTag> edLayersToRead,
EnumSet<TextCorpusLayerTag> tcLayersToRead,
OutputStream outputStream)
Creates a ExternalDataWithTextCorpusStreamed from the given TCF input stream, specified annotation layers and the output stream. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the input and output streams associated with this object and releases any associated system resources. |
ExternalData |
getExternalData()
Gets ExternalData. |
TextCorpus |
getTextCorpus()
Gets TextCorpus. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExternalDataWithTextCorpusStreamed(InputStream inputStream,
EnumSet<ExternalDataLayerTag> edLayersToRead,
EnumSet<TextCorpusLayerTag> tcLayersToRead)
throws WLFormatException
inputStream - the underlying input stream with linguistic annotations
in TCF format.edLayersToRead - the annotation layers of ExternalData that
should be read into this ExternalDataWithTextCorpusStreamed.tcLayersToRead - the annotation layers of TextCorpus that
should be read into this ExternalDataWithTextCorpusStreamed.
WLFormatException - if an error in input format or an I/O error occurs.
public ExternalDataWithTextCorpusStreamed(InputStream inputStream,
EnumSet<ExternalDataLayerTag> edLayersToRead,
EnumSet<TextCorpusLayerTag> tcLayersToRead,
OutputStream outputStream)
throws WLFormatException
inputStream - the underlying input stream with linguistic annotations
in TCF format.edLayersToRead - the annotation layers of ExternalData that
should be read into this ExternalDataWithTextCorpusStreamed.tcLayersToRead - the annotation layers of TextCorpus that
should be read into this ExternalDataWithTextCorpusStreamed.outputStream - the underlying output stream into which the annotations
from the input stream and any new created annotations will be written (in
TCF format).
WLFormatException - if an error in input format or an I/O error occurs.| Method Detail |
|---|
public TextCorpus getTextCorpus()
public ExternalData getExternalData()
public void close()
throws WLFormatException
WLFormatException - if an error in input format or an I/O error occurs.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||