org.semanticweb.owlapi.io
Class ZipDocumentTarget

java.lang.Object
  extended by org.semanticweb.owlapi.io.ZipDocumentTarget
All Implemented Interfaces:
OWLOntologyDocumentTarget

public class ZipDocumentTarget
extends java.lang.Object
implements OWLOntologyDocumentTarget

Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 03-Apr-2009


Constructor Summary
ZipDocumentTarget(java.io.File file)
           
 
Method Summary
 IRI getDocumentIRI()
          Gets an IRI that points to an ontology document.
 java.io.OutputStream getOutputStream()
          Gets an OutputStream that can be used to write an ontology to an ontology document.
 java.io.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipDocumentTarget

public ZipDocumentTarget(java.io.File file)
Method Detail

isWriterAvailable

public boolean isWriterAvailable()
Description copied from interface: OWLOntologyDocumentTarget
Determines if this document target can be pointed to by a Writer.

Specified by:
isWriterAvailable in interface OWLOntologyDocumentTarget
Returns:
true if a Writer can be obtained from this document target.

getWriter

public java.io.Writer getWriter()
                         throws java.io.IOException
Description copied from interface: OWLOntologyDocumentTarget
Gets a Writer that can be used to write an ontology to an ontology document.

Specified by:
getWriter in interface OWLOntologyDocumentTarget
Returns:
The writer
Throws:
java.io.IOException - if there was a problem obtaining the writer

isOutputStreamAvailable

public boolean isOutputStreamAvailable()
Description copied from interface: OWLOntologyDocumentTarget
Determines if this document target can be pointed to by an OutputStream.

Specified by:
isOutputStreamAvailable in interface OWLOntologyDocumentTarget
Returns:
true if an OutputStream can be obtained from this document target.

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Description copied from interface: OWLOntologyDocumentTarget
Gets an OutputStream that can be used to write an ontology to an ontology document.

Specified by:
getOutputStream in interface OWLOntologyDocumentTarget
Returns:
The output stream
Throws:
java.io.IOException - if there was a problem obtaining the output stream

isDocumentIRIAvailable

public boolean isDocumentIRIAvailable()
Description copied from interface: OWLOntologyDocumentTarget
Determines if an IRI that points to an ontology document is available. The IRI encodes the exact details of how an ontology should be saved to a document.

Specified by:
isDocumentIRIAvailable in interface OWLOntologyDocumentTarget
Returns:
true if an IRI is available, otherwise false.

getDocumentIRI

public IRI getDocumentIRI()
Description copied from interface: OWLOntologyDocumentTarget
Gets an IRI that points to an ontology document.

Specified by:
getDocumentIRI in interface OWLOntologyDocumentTarget
Returns:
The IRI