org.semanticweb.owlapi.io
Class StringDocumentTarget

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

public class StringDocumentTarget
extends java.lang.Object
implements OWLOntologyDocumentTarget

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 23-Mar-2008


Constructor Summary
StringDocumentTarget()
           
 
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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringDocumentTarget

public StringDocumentTarget()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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