|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.clarin.weblicht.wlfxb.tc.xb.TextCorpusStored
eu.clarin.weblicht.wlfxb.io.TextCorpusStreamed
public class TextCorpusStreamed
Class TextCorpusStreamed is used for accessing specified annotation
layers and (optionally) adding any new annotation layers from/to TextCorpus.
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.
| Field Summary |
|---|
| Fields inherited from class eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusStored |
|---|
lang, layersInOrder, XML_NAME, XML_NAMESPACE |
| Constructor Summary | |
|---|---|
TextCorpusStreamed(InputStream inputStream,
EnumSet<TextCorpusLayerTag> layersToRead)
Creates a TextCorpusStreamed from the given TCF input stream and specified annotation layers. |
|
TextCorpusStreamed(InputStream inputStream,
EnumSet<TextCorpusLayerTag> layersToRead,
OutputStream outputStream)
Creates a TextCorpusStreamed from the given TCF input stream, specified annotation layers and the output stream. |
|
TextCorpusStreamed(InputStream inputStream,
EnumSet<TextCorpusLayerTag> layersToRead,
OutputStream outputStream,
boolean outputAsXmlFragment)
Creates a TextCorpusStreamed from the given TCF input stream, specified annotation layers and the output stream. |
|
TextCorpusStreamed(InputStream inputStream,
EnumSet<TextCorpusLayerTag> layersToRead,
OutputStream outputStream,
List<MetaDataItem> metaDataToAdd)
Creates a TextCorpusStreamed from the given TCF input stream, specified annotation layers, output stream and meta data. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the input and output streams associated with this object and releases any associated system resources. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextCorpusStreamed(InputStream inputStream,
EnumSet<TextCorpusLayerTag> layersToRead)
throws WLFormatException
inputStream - the underlying input stream with linguistic
annotations in TCF format.layersToRead - the annotation layers of TextCorpus that
should be read into this TextCorpusStreamed.
WLFormatException - if an error in input format or an I/O error
occurs.
public TextCorpusStreamed(InputStream inputStream,
EnumSet<TextCorpusLayerTag> layersToRead,
OutputStream outputStream)
throws WLFormatException
inputStream - the underlying input stream with linguistic
annotations in TCF format.layersToRead - the annotation layers of TextCorpus that
should be read into this TextCorpusStreamed.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 TextCorpusStreamed(InputStream inputStream,
EnumSet<TextCorpusLayerTag> layersToRead,
OutputStream outputStream,
boolean outputAsXmlFragment)
throws WLFormatException
inputStream - the underlying input stream with linguistic
annotations in TCF format.layersToRead - the annotation layers of TextCorpus that
should be read into this TextCorpusStreamed.outputStream - the underlying output stream into which the
annotations from the input stream and any new created annotations will be
written (in TCF format).outputAsXmlFragment - true if the output should not contain xml
headers, false otherwise.
WLFormatException - if an error in input format or an I/O error
occurs.
public TextCorpusStreamed(InputStream inputStream,
EnumSet<TextCorpusLayerTag> layersToRead,
OutputStream outputStream,
List<MetaDataItem> metaDataToAdd)
throws WLFormatException
inputStream - the underlying input stream with linguistic
annotations in TCF format.layersToRead - the annotation layers of TextCorpus that
should be read into this TextCorpusStreamed.outputStream - the underlying output stream into which the
annotations from the input stream and any new created annotations will be
written (in TCF format).metaDataToAdd - meta data to be added to the output TCF.
WLFormatException - if an error in input format or an I/O error
occurs.| Method Detail |
|---|
public void close()
throws WLFormatException
WLFormatException - if an error in input format or an I/O error
occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||