public class ExternalDataWithTextCorpusStreamed extends Object
WLData class.| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
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.public TextCorpus getTextCorpus()
public ExternalData getExternalData()
public void close()
throws WLFormatException
WLFormatException - if an error in input format or an I/O error occurs.Copyright © 2013-2019 Department of Linguistics, Tübingen University. All Rights Reserved.