org.semanticweb.owlapi.io
Class SystemOutDocumentTarget

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

public class SystemOutDocumentTarget
extends java.lang.Object
implements OWLOntologyDocumentTarget

Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 18-Dec-2009

An output target that will output an ontology to System.out


Constructor Summary
SystemOutDocumentTarget()
           
 
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

SystemOutDocumentTarget

public SystemOutDocumentTarget()
Method Detail

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

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.

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

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.

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

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.