artisynth.core.util
Class ArtisynthIO

java.lang.Object
  extended by artisynth.core.util.ArtisynthIO

public class ArtisynthIO
extends java.lang.Object

Utility routines for creating writers and tokenizers for I/O operations.


Constructor Summary
ArtisynthIO()
           
 
Method Summary
static IndentingPrintWriter newIndentingPrintWriter(java.io.File file)
          Creates a buffered IndentingPrintWriter for a particular file.
static IndentingPrintWriter newIndentingPrintWriter(java.lang.String fileName)
          Creates a buffered IndentingPrintWriter for a particular file.
static ReaderTokenizer newReaderTokenizer(java.io.File file)
          Creates a ReaderTokenizer for a specified input file.
static ReaderTokenizer newReaderTokenizer(java.io.Reader reader)
          Creates a ReaderTokenizer for a specified Reader.
static ReaderTokenizer newReaderTokenizer(java.lang.String fileName)
          Creates a ReaderTokenizer for a specified input file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtisynthIO

public ArtisynthIO()
Method Detail

newIndentingPrintWriter

public static IndentingPrintWriter newIndentingPrintWriter(java.io.File file)
                                                    throws java.io.IOException
Creates a buffered IndentingPrintWriter for a particular file.

Parameters:
file - File on which to create the writer
Throws:
java.io.IOException

newIndentingPrintWriter

public static IndentingPrintWriter newIndentingPrintWriter(java.lang.String fileName)
                                                    throws java.io.IOException
Creates a buffered IndentingPrintWriter for a particular file.

Parameters:
fileName - Name of the file on which to create the writer
Throws:
java.io.IOException

newReaderTokenizer

public static ReaderTokenizer newReaderTokenizer(java.io.File file)
                                          throws java.io.IOException
Creates a ReaderTokenizer for a specified input file. The tokenizer is set to accept ., /, and $ as word characters, and the underlying Reader is buffered.

Parameters:
file - File on which to create the tokenizer
Throws:
java.io.IOException

newReaderTokenizer

public static ReaderTokenizer newReaderTokenizer(java.lang.String fileName)
                                          throws java.io.IOException
Creates a ReaderTokenizer for a specified input file. The tokenizer is set to accept ., /, and $ as word characters, and the underlying Reader is buffered.

Parameters:
fileName - Name of the file on which to create the tokenizer
Throws:
java.io.IOException

newReaderTokenizer

public static ReaderTokenizer newReaderTokenizer(java.io.Reader reader)
                                          throws java.io.IOException
Creates a ReaderTokenizer for a specified Reader. The tokenizer is set to accept ., /, and $ as word characters.

Parameters:
reader - Reader on which to attach the tokenizer
Throws:
java.io.IOException