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, wait
getWriter
public 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()
OWLOntologyDocumentTarget
OutputStream
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 OWLOntologyDocumentTarget
public Optional<IRI> getDocumentIRI()
OWLOntologyDocumentTarget
getDocumentIRI
in interface OWLOntologyDocumentTarget
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2020 The University of Manchester. All rights reserved.