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() |
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 XZFileDocumentTarget(@Nonnull File os, org.tukaani.xz.FilterOptions... filterOptions)
os
- the actual filefilterOptions
- Settings for XZ compressionpublic XZFileDocumentTarget(@Nonnull 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 boolean isWriterAvailable()
OWLOntologyDocumentTarget
Writer
.isWriterAvailable
in interface OWLOntologyDocumentTarget
true
if a Writer
can be obtained from
this document target.@Nonnull public Writer getWriter()
OWLOntologyDocumentTarget
Writer
that can be used to write an ontology to an
ontology document.getWriter
in interface OWLOntologyDocumentTarget
public boolean isOutputStreamAvailable()
OWLOntologyDocumentTarget
OutputStream
.isOutputStreamAvailable
in interface OWLOntologyDocumentTarget
true
if an OutputStream
can be obtained
from this document target.public OutputStream getOutputStream()
OWLOntologyDocumentTarget
OutputStream
that can be used to write an
ontology to an ontology document.getOutputStream
in interface OWLOntologyDocumentTarget
public boolean isDocumentIRIAvailable()
OWLOntologyDocumentTarget
isDocumentIRIAvailable
in interface OWLOntologyDocumentTarget
true
if an IRI is available, otherwise false
.public 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.