Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added missing JavaDoc

  • Loading branch information...
commit 2bf085fc29193155982373868320871d350787da 1 parent 36fe0d7
@egonw egonw authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/main/org/openscience/cdk/io/rdf/CDKOWLWriter.java
View
16 src/main/org/openscience/cdk/io/rdf/CDKOWLWriter.java
@@ -44,30 +44,45 @@
private Writer output;
+ /**
+ * Creates a new CDKOWLWriter sending output to the given Writer.
+ *
+ * @param output {@link Writer} to which is OWL output is routed.
+ */
public CDKOWLWriter(Writer output) {
this.output = output;
}
+ /**
+ * Creates a new CDKOWLWriter with an undefined output.
+ */
public CDKOWLWriter() {
this.output = null;
}
+ /**
+ * Returns the {@link IResourceFormat} for this writer: {@link CDKOWLFormat}.
+ */
public IResourceFormat getFormat() {
return CDKOWLFormat.getInstance();
}
+ /** {@inheritDoc} */
public void setWriter(Writer out) throws CDKException {
this.output = out;
}
+ /** {@inheritDoc} */
public void setWriter(OutputStream output) throws CDKException {
this.output = new OutputStreamWriter(output);
}
+ /** {@inheritDoc} */
public void close() throws IOException {
if (output != null) output.close();
}
+ /** {@inheritDoc} */
@TestMethod("testAccepts")
public boolean accepts(Class classObject) {
Class[] interfaces = classObject.getInterfaces();
@@ -79,6 +94,7 @@ public boolean accepts(Class classObject) {
return false;
}
+ /** {@inheritDoc} */
public void write(IChemObject object) throws CDKException {
if (object instanceof IMolecule) {
try {
Please sign in to comment.
Something went wrong with that request. Please try again.