org.semanticweb.owlapi.io
Class StreamDocumentTarget

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

public class StreamDocumentTarget
extends java.lang.Object
implements OWLOntologyDocumentTarget

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 25-Jan-2008


Constructor Summary
StreamDocumentTarget(java.io.OutputStream os)
           
 
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

StreamDocumentTarget

public StreamDocumentTarget(java.io.OutputStream os)
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()
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

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()
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

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