SSJ
V. 2.6.

umontreal.iro.lecuyer.util.io
Class AbstractDataWriter

java.lang.Object
  extended by umontreal.iro.lecuyer.util.io.AbstractDataWriter
All Implemented Interfaces:
DataWriter
Direct Known Subclasses:
BinaryDataWriter, CachedDataWriter

public abstract class AbstractDataWriter
extends Object
implements DataWriter

This abstract class implements shared functionality for data writers.


Constructor Summary
AbstractDataWriter()
           
 
Method Summary
 void write(String label, double[] a)
          Writes a one-dimensional array of 64-bit doubles (big endian).
 void write(String label, float[] a)
          Writes a one-dimensional array of 32-bit floats (big endian).
 void write(String label, int[] a)
          Writes a one-dimensional array of 32-bit integers (big endian).
 void write(String label, String[] a)
          Writes a one-dimensional array of strings.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface umontreal.iro.lecuyer.util.io.DataWriter
close, write, write, write, write, write, write, write, write, write, write, write, write
 

Constructor Detail

AbstractDataWriter

public AbstractDataWriter()
Method Detail

write

public void write(String label,
                  String[] a)
           throws IOException
Writes a one-dimensional array of strings. If label is null, writes an anonymous field.

Specified by:
write in interface DataWriter
Throws:
IOException

write

public void write(String label,
                  int[] a)
           throws IOException
Writes a one-dimensional array of 32-bit integers (big endian). If label is null, writes an anonymous field.

Specified by:
write in interface DataWriter
Throws:
IOException

write

public void write(String label,
                  float[] a)
           throws IOException
Writes a one-dimensional array of 32-bit floats (big endian). If label is null, writes an anonymous field.

Specified by:
write in interface DataWriter
Throws:
IOException

write

public void write(String label,
                  double[] a)
           throws IOException
Writes a one-dimensional array of 64-bit doubles (big endian). If label is null, writes an anonymous field.

Specified by:
write in interface DataWriter
Throws:
IOException

SSJ
V. 2.6.

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.