jET
1.0beta1


org.jet.sce
Class EditorKit

java.lang.Object
  |
  +--org.jet.sce.EditorKit

public class EditorKit
extends java.lang.Object

Scenery editor kit is a place where some useful utilities are stored.


Nested Class Summary
static class EditorKit.SceneryException
          The exception when scenery file is corrupted.
 
Constructor Summary
EditorKit()
           
 
Method Summary
 Scenery createDefaultScenery()
          Creates default scenery.
 void printSwitch(java.io.PrintWriter pOut, Switch sw)
          Prints switch.
 void read(java.io.InputStream in, Scenery sc)
          Reads input stream which is expected to be a scenery.
 void read(java.io.Reader rin, Scenery sc)
          Reads reader which is expected to be content for scenery.
 void write(java.io.OutputStream out, Scenery sc)
          Writes scenery to the output stream.
 void write(java.io.Writer out, Scenery sc)
          Writes scenery to the writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorKit

public EditorKit()
Method Detail

read

public void read(java.io.InputStream in,
                 Scenery sc)
          throws java.io.IOException
Reads input stream which is expected to be a scenery.

Parameters:
in - The stream to read.
sc - The scenery to write to.
Throws:
java.io.IOException - When some errors occured.

read

public void read(java.io.Reader rin,
                 Scenery sc)
          throws java.io.IOException
Reads reader which is expected to be content for scenery.

Parameters:
rin - The reader to read.
sc - The scenery to write to.
Throws:
java.io.IOException - When some errors occured.

write

public void write(java.io.OutputStream out,
                  Scenery sc)
           throws java.io.IOException
Writes scenery to the output stream.

Parameters:
out - The output stream.
sc - Scenery to write.
Throws:
java.io.IOException - Thrown when some I/O errors ocuured.

write

public void write(java.io.Writer out,
                  Scenery sc)
           throws java.io.IOException
Writes scenery to the writer.

Parameters:
out - The output stream.
sc - Scenery to write.
Throws:
java.io.IOException - Thrown when some I/O errors occured.

printSwitch

public void printSwitch(java.io.PrintWriter pOut,
                        Switch sw)
Prints switch.


createDefaultScenery

public Scenery createDefaultScenery()
Creates default scenery.

Returns:
Scenery.

jET
1.0beta1