public abstract class CorpusExporter extends DocumentExporter
DocumentExporter that is also capable of exporting
a whole corpus to a single file.defaultExtension, fileType, filter, mimeTypenamefeatures| 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, getNamecheckParameterValues, cleanup, flushBeanInfoCache, forgetBeanInfo, getBeanInfo, getInitParameterValues, getInitParameterValues, getParameterValue, getParameterValue, getParameterValues, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners, toStringgetFeatures, setFeaturesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFeatures, setFeaturespublic void export(Corpus corpus, File file) throws IOException
export(Corpus,File,FeatureMap) with an empty map
of options.IOExceptionpublic void export(Corpus corpus, File file, FeatureMap options) throws IOException
export(Corpus,OutputStream,FeatureMap) using a
FileOutputStream instance constructed from the File param.IOExceptionpublic void export(Corpus corpus, OutputStream out) throws IOException
export(Corpus,OutputStream) with an empty
map of options.IOExceptionpublic 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 optionsIOExceptionCopyright © 2024 GATE. All rights reserved.