Class XZFileDocumentSource

java.lang.Object
org.semanticweb.owlapi.io.OWLOntologyDocumentSourceBase
org.semanticweb.owlapi.io.XZFileDocumentSource
All Implemented Interfaces:
OWLOntologyDocumentSource

public class XZFileDocumentSource extends OWLOntologyDocumentSourceBase
An ontology document source which can read from a XZ (LZMA) compressed File.
Since:
4.0.2
Author:
ses
  • Constructor Details

    • XZFileDocumentSource

      public XZFileDocumentSource(File is)
      Constructs an input source which will read an ontology from a representation from the specified file.
      Parameters:
      is - The file that the ontology representation will be read from.
    • XZFileDocumentSource

      public XZFileDocumentSource(File stream, IRI documentIRI, @Nullable OWLDocumentFormat format, @Nullable String mime)
      Constructs an input source which will read an ontology from a representation from the specified file.
      Parameters:
      stream - The file that the ontology representation will be read from.
      documentIRI - The document IRI
      format - ontology format
      mime - mime type
  • Method Details

    • getInputStream

      public Optional<InputStream> getInputStream()
      Description copied from interface: OWLOntologyDocumentSource
      If an input stream can be obtained from this document source then this method creates it. This method may be called multiple times. Each invocation will return a new input stream. If there is no input stream available, returns Optional.absent. .
      Returns:
      A new input stream which the ontology can be read from, wrapped in an Optional.