Diamond Control Suite 3.0

diamondedge.util
Class OutputFile

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FileOutputStream
          extended by diamondedge.util.OutputFile
All Implemented Interfaces:
Closeable, Flushable
Direct Known Subclasses:
AppendFile

public class OutputFile
extends FileOutputStream


Constructor Summary
OutputFile(String pathName)
           
OutputFile(String pathName, boolean append)
           
 
Method Summary
 int length()
           
 void print(boolean data)
           
 void print(double data)
           
 void print(int data)
           
 void print(String data)
           
 void print(Variant data)
           
 void println()
           
 void spc(int n)
          Outputs a space.
 void tab()
          Outputs enough spaces to get to next tab stop.
 void tab(int n)
          Outputs enough spaces to get to next n tab stops.
 void write(int c)
           
 void writeValue(boolean data)
          Outputs data to a CSV formatted file.
 void writeValue(double data)
          Outputs data to a CSV formatted file.
 void writeValue(int data)
          Outputs data to a CSV formatted file.
 void writeValue(String data)
          Outputs data to a CSV formatted file.
 void writeValue(Variant data)
          Outputs data to a CSV formatted file.
 
Methods inherited from class java.io.FileOutputStream
close, finalize, getChannel, getFD, write, write
 
Methods inherited from class java.io.OutputStream
flush
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputFile

public OutputFile(String pathName)
           throws FileNotFoundException
Throws:
FileNotFoundException

OutputFile

public OutputFile(String pathName,
                  boolean append)
           throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

println

public void println()
             throws IOException
Throws:
IOException

print

public void print(int data)
           throws IOException
Throws:
IOException

print

public void print(double data)
           throws IOException
Throws:
IOException

print

public void print(String data)
           throws IOException
Throws:
IOException

print

public void print(boolean data)
           throws IOException
Throws:
IOException

print

public void print(Variant data)
           throws IOException
Throws:
IOException

writeValue

public void writeValue(int data)
                throws IOException
Outputs data to a CSV formatted file.

Throws:
IOException

writeValue

public void writeValue(double data)
                throws IOException
Outputs data to a CSV formatted file.

Throws:
IOException

writeValue

public void writeValue(String data)
                throws IOException
Outputs data to a CSV formatted file.

Throws:
IOException

writeValue

public void writeValue(boolean data)
                throws IOException
Outputs data to a CSV formatted file.

Throws:
IOException

writeValue

public void writeValue(Variant data)
                throws IOException
Outputs data to a CSV formatted file.

Throws:
IOException

spc

public void spc(int n)
         throws IOException
Outputs a space.

Throws:
IOException

tab

public void tab()
         throws IOException
Outputs enough spaces to get to next tab stop.

Throws:
IOException

tab

public void tab(int n)
         throws IOException
Outputs enough spaces to get to next n tab stops.

Throws:
IOException

write

public void write(int c)
           throws IOException
Overrides:
write in class FileOutputStream
Throws:
IOException

length

public int length()

Diamond Control Suite 3.0

Diamond Edge and Diamond Control Suite are trademarks or registered trademarks of Diamond Edge, Inc. Copyright 1999-2005 Diamond Edge, Inc. All Rights Reserved.