SSJ  3.3.1
Stochastic Simulation in Java
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CachedDataWriter Class Referenceabstract

This abstract class implements shared functionality for data writers that store all fields in memory before outputing them with umontreal.ssj.util.io.DataWriter.close. More...

Inheritance diagram for CachedDataWriter:
[legend]
Collaboration diagram for CachedDataWriter:
[legend]

Public Member Functions

 CachedDataWriter ()
 Class constructor.
 
Writing atomic data
void write (String label, String s) throws IOException
 Writes an atomic string field. More...
 
void write (String label, int a) throws IOException
 Writes an atomic 32-bit integer (big endian). More...
 
void write (String label, float a) throws IOException
 Writes an atomic 32-bit float (big endian). More...
 
void write (String label, double a) throws IOException
 Writes an atomic 64-bit double (big endian). More...
 
Writing one-dimensional arrays
void write (String label, String[] a, int n) throws IOException
 Writes the first n elements of a one-dimensional array of strings. More...
 
void write (String label, int[] a, int n) throws IOException
 Writes the first n elements of a one-dimensional array of 32-bit integers (big endian). More...
 
void write (String label, float[] a, int n) throws IOException
 Writes the first n elements of a one-dimensional array of 32-bit floats (big endian). More...
 
void write (String label, double[] a, int n) throws IOException
 Writes the first n elements of a one-dimensional array of 64-bit doubles (big endian). More...
 
Writing two-dimensional arrays
void write (String label, String[][] a) throws IOException
 Writes a two-dimensional array of strings. More...
 
void write (String label, int[][] a) throws IOException
 Writes a two-dimensional array of 32-bit integers (big endian). More...
 
void write (String label, float[][] a) throws IOException
 Writes a two-dimensional array of 32-bit floats (big endian). More...
 
void write (String label, double[][] a) throws IOException
 Writes a two-dimensional array of 64-bit doubles (big endian). More...
 
- Public Member Functions inherited from AbstractDataWriter
void write (String label, String[] a) throws IOException
 Writes a one-dimensional array of strings. More...
 
void write (String label, int[] a) throws IOException
 Writes a one-dimensional array of 32-bit integers (big endian). More...
 
void write (String label, float[] a) throws IOException
 Writes a one-dimensional array of 32-bit floats (big endian). More...
 
void write (String label, double[] a) throws IOException
 Writes a one-dimensional array of 64-bit doubles (big endian). More...
 
- Public Member Functions inherited from DataWriter
void close () throws IOException
 Flushes any pending data and closes the output stream.
 

Protected Member Functions

LinkedList< DataFieldgetFields ()
 

Protected Attributes

LinkedList< DataFieldfields
 

Detailed Description

This abstract class implements shared functionality for data writers that store all fields in memory before outputing them with umontreal.ssj.util.io.DataWriter.close.

Member Function Documentation

◆ write() [1/12]

void write ( String  label,
String  s 
) throws IOException

Writes an atomic string field.

Writes an anonymous field if label is null.

Implements DataWriter.

◆ write() [2/12]

void write ( String  label,
int  a 
) throws IOException

Writes an atomic 32-bit integer (big endian).

Writes an anonymous field if label is null.

Implements DataWriter.

◆ write() [3/12]

void write ( String  label,
float  a 
) throws IOException

Writes an atomic 32-bit float (big endian).

Writes an anonymous field if label is null.

Implements DataWriter.

◆ write() [4/12]

void write ( String  label,
double  a 
) throws IOException

Writes an atomic 64-bit double (big endian).

Writes an anonymous field if label is null.

Implements DataWriter.

◆ write() [5/12]

void write ( String  label,
String []  a,
int  n 
) throws IOException

Writes the first n elements of a one-dimensional array of strings.

Writes an anonymous field if label is null.

Implements DataWriter.

◆ write() [6/12]

void write ( String  label,
int []  a,
int  n 
) throws IOException

Writes the first n elements of a one-dimensional array of 32-bit integers (big endian).

Writes an anonymous field if label is null.

Implements DataWriter.

◆ write() [7/12]

void write ( String  label,
float []  a,
int  n 
) throws IOException

Writes the first n elements of a one-dimensional array of 32-bit floats (big endian).

Writes an anonymous field if label is null.

Implements DataWriter.

◆ write() [8/12]

void write ( String  label,
double []  a,
int  n 
) throws IOException

Writes the first n elements of a one-dimensional array of 64-bit doubles (big endian).

Writes an anonymous field if label is null.

Implements DataWriter.

◆ write() [9/12]

void write ( String  label,
String  a[][] 
) throws IOException

Writes a two-dimensional array of strings.

Writes an anonymous field if label is null.

Implements DataWriter.

◆ write() [10/12]

void write ( String  label,
int  a[][] 
) throws IOException

Writes a two-dimensional array of 32-bit integers (big endian).

Writes an anonymous field if label is null.

Implements DataWriter.

◆ write() [11/12]

void write ( String  label,
float  a[][] 
) throws IOException

Writes a two-dimensional array of 32-bit floats (big endian).

Writes an anonymous field if label is null.

Implements DataWriter.

◆ write() [12/12]

void write ( String  label,
double  a[][] 
) throws IOException

Writes a two-dimensional array of 64-bit doubles (big endian).

Writes an anonymous field if label is null.

Implements DataWriter.


The documentation for this class was generated from the following file: