public class XZStreamDocumentTarget extends Object implements OWLOntologyDocumentTarget, AutoCloseable
Constructor and Description |
---|
XZStreamDocumentTarget(OutputStream os,
org.tukaani.xz.FilterOptions... filterOptions) |
XZStreamDocumentTarget(OutputStream os,
int presetLevel) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
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
getDocumentIRI, getWriter
public XZStreamDocumentTarget(OutputStream os, org.tukaani.xz.FilterOptions... filterOptions)
os
- the actual output streamfilterOptions
- XZ filter options to use. If no options are supplied use default LZMA2
Options.public XZStreamDocumentTarget(OutputStream os, int presetLevel) throws org.tukaani.xz.UnsupportedOptionsException
os
- output stream to wrappresetLevel
- LZMA2 Preset Level to useorg.tukaani.xz.UnsupportedOptionsException
- if an unsupported preset level is suppliedpublic 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 void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2020 The University of Manchester. All rights reserved.