public abstract class CorpusExporter extends DocumentExporter
DocumentExporter
that is also capable of exporting
a whole corpus to a single file.defaultExtension, fileType, filter, mimeType
name
features
Constructor and Description |
---|
CorpusExporter(String fileType,
String defaultExtension,
String mimeType) |
Modifier and Type | Method and Description |
---|---|
void |
export(Corpus corpus,
File file)
Equivalent to
export(Corpus,File,FeatureMap) with an empty map
of options. |
void |
export(Corpus corpus,
File file,
FeatureMap options)
Equivalent to
export(Corpus,OutputStream,FeatureMap) using a
FileOutputStream instance constructed from the File param. |
void |
export(Corpus corpus,
OutputStream out)
Equivalent to
export(Corpus,OutputStream) with an empty
map of options. |
abstract void |
export(Corpus corpus,
OutputStream out,
FeatureMap options)
Exports the provided
Corpus instance to the specified
OutputStream using the specified options. |
export, export, export, export, getDefaultExtension, getFileFilter, getFileType, getInstance, getMimeType, getName
checkParameterValues, cleanup, flushBeanInfoCache, forgetBeanInfo, getBeanInfo, getInitParameterValues, getInitParameterValues, getParameterValue, getParameterValue, getParameterValues, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners, toString
getFeatures, setFeatures
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFeatures, setFeatures
public void export(Corpus corpus, File file) throws IOException
export(Corpus,File,FeatureMap)
with an empty map
of options.IOException
public void export(Corpus corpus, File file, FeatureMap options) throws IOException
export(Corpus,OutputStream,FeatureMap)
using a
FileOutputStream instance constructed from the File param.IOException
public void export(Corpus corpus, OutputStream out) throws IOException
export(Corpus,OutputStream)
with an empty
map of options.IOException
public abstract void export(Corpus corpus, OutputStream out, FeatureMap options) throws IOException
Corpus
instance to the specified
OutputStream
using the specified options.corpus
- the corpus to exportout
- the OutputStream to export the document tooptions
- DocumentExporter specific optionsIOException
Copyright © 2024 GATE. All rights reserved.