Package org.semanticweb.owlapi.io
Class GZipStreamDocumentTarget
java.lang.Object
org.semanticweb.owlapi.io.GZipStreamDocumentTarget
- All Implemented Interfaces:
OWLOntologyDocumentTarget
An ontology document target which can write to a GZIP stream. Notice that
this works best when the output stream is closed explicitly in the client
code.
- Since:
- 3.4.8
- Author:
- ignazio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets anOutputStream
that can be used to write an ontology to an ontology document.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.semanticweb.owlapi.io.OWLOntologyDocumentTarget
getDocumentIRI, getWriter
-
Constructor Details
-
GZipStreamDocumentTarget
- Parameters:
os
- the actual file
-
-
Method Details
-
getOutputStream
Description copied from interface:OWLOntologyDocumentTarget
Gets anOutputStream
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.- Specified by:
getOutputStream
in interfaceOWLOntologyDocumentTarget
- Returns:
- The output stream
-