net.ontopia.topicmaps.schema.impl.osl
Class OSLSchemaWriter

java.lang.Object
  extended by net.ontopia.topicmaps.schema.impl.osl.OSLSchemaWriter
All Implemented Interfaces:
SchemaWriterIF

public class OSLSchemaWriter
extends java.lang.Object
implements SchemaWriterIF

PUBLIC: Writes out an OSL schema using the OSL schema syntax.


Constructor Summary
OSLSchemaWriter(java.io.File file, java.lang.String encoding)
          PUBLIC: Creates a schema writer bound to the given file.
OSLSchemaWriter(java.io.Writer out, java.lang.String encoding)
          PUBLIC: Creates a schema writer bound to the given Writer object.
 
Method Summary
 void write(SchemaIF schema)
          PUBLIC: Writes the schema.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSLSchemaWriter

public OSLSchemaWriter(java.io.Writer out,
                       java.lang.String encoding)
PUBLIC: Creates a schema writer bound to the given Writer object.

Parameters:
encoding - The encoding in which the schema will be written.

OSLSchemaWriter

public OSLSchemaWriter(java.io.File file,
                       java.lang.String encoding)
                throws java.io.IOException
PUBLIC: Creates a schema writer bound to the given file.

Parameters:
encoding - The encoding in which to write the file.
Throws:
java.io.IOException
Method Detail

write

public void write(SchemaIF schema)
           throws java.io.IOException
PUBLIC: Writes the schema.

Specified by:
write in interface SchemaWriterIF
Throws:
java.io.IOException - Thrown if there are problems writing to the specified location.


Copyright © 2000-2010 Ontopia.