public class XZFileDocumentTarget extends Object implements OWLOntologyDocumentTarget, AutoCloseable
| Constructor and Description |
|---|
XZFileDocumentTarget(File file)
Construct an XZ document target
|
XZFileDocumentTarget(File os,
org.tukaani.xz.FilterOptions... filterOptions) |
XZFileDocumentTarget(File os,
int presetLevel)
Construct an XZ document target using the selected compression preset
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Optional<IRI> |
getDocumentIRI()
Gets an IRI that points to an ontology document.
|
Optional<OutputStream> |
getOutputStream()
Gets an
OutputStream that can be used to write an
ontology to an ontology document. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWriterpublic XZFileDocumentTarget(File os, org.tukaani.xz.FilterOptions... filterOptions)
os - the actual filefilterOptions - Settings for XZ compressionpublic XZFileDocumentTarget(File os, int presetLevel) throws org.tukaani.xz.UnsupportedOptionsException
os - target FilepresetLevel - LZMA2 Compression preset levelorg.tukaani.xz.UnsupportedOptionsException - if the options selected are not acceptablepublic XZFileDocumentTarget(File file)
file - target Filepublic Optional<OutputStream> getOutputStream()
OWLOntologyDocumentTargetOutputStream that can be used to write an
ontology to an ontology document. If none is available, return
Optional.absent. Do not call multiple times for the same file: the output
file will be opened for write multiple times.getOutputStream in interface OWLOntologyDocumentTargetpublic Optional<IRI> getDocumentIRI()
OWLOntologyDocumentTargetgetDocumentIRI in interface OWLOntologyDocumentTargetpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2018 The University of Manchester. All rights reserved.