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() |
IRI |
getDocumentIRI()
Gets an IRI that points to an ontology document.
|
OutputStream |
getOutputStream()
Gets an
OutputStream that can be used to write an
ontology to an ontology document. |
Writer |
getWriter()
Gets a
Writer that can be used to write an ontology to an
ontology document. |
boolean |
isDocumentIRIAvailable()
Determines if an IRI that points to an ontology document is available.
|
boolean |
isOutputStreamAvailable()
Determines if this document target can be pointed to by an
OutputStream. |
boolean |
isWriterAvailable()
Determines if this document target can be pointed to by a
Writer. |
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 boolean isWriterAvailable()
OWLOntologyDocumentTargetWriter.isWriterAvailable in interface OWLOntologyDocumentTargettrue if a Writer can be obtained from
this document target.@Nonnull public Writer getWriter()
OWLOntologyDocumentTargetWriter that can be used to write an ontology to an
ontology document.getWriter in interface OWLOntologyDocumentTargetpublic boolean isOutputStreamAvailable()
OWLOntologyDocumentTargetOutputStream.isOutputStreamAvailable in interface OWLOntologyDocumentTargettrue if an OutputStream can be obtained
from this document target.@Nonnull public OutputStream getOutputStream()
OWLOntologyDocumentTargetOutputStream that can be used to write an
ontology to an ontology document.getOutputStream in interface OWLOntologyDocumentTargetpublic boolean isDocumentIRIAvailable()
OWLOntologyDocumentTargetisDocumentIRIAvailable in interface OWLOntologyDocumentTargettrue if an IRI is available, otherwise false.@Nonnull public IRI getDocumentIRI()
OWLOntologyDocumentTargetgetDocumentIRI in interface OWLOntologyDocumentTargetpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2016 The University of Manchester. All Rights Reserved.