SSJ  3.3.1
Stochastic Simulation in Java
List of all members
DataWriter Interface Reference

Data writer interface. More...

Inheritance diagram for DataWriter:
[legend]

Public Member Functions

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) throws IOException
 Writes a one-dimensional array of strings. More...
 
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) throws IOException
 Writes a one-dimensional array of 32-bit integers (big endian). 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) throws IOException
 Writes a one-dimensional array of 32-bit floats (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) throws IOException
 Writes a one-dimensional array of 64-bit doubles (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...
 
Other methods
void close () throws IOException
 Flushes any pending data and closes the output stream.
 

Detailed Description

Data writer interface.

Member Function Documentation

◆ write() [1/16]

void write ( String  label,
String  s 
) throws IOException

Writes an atomic string field.

Writes an anonymous field if label is null.

Implemented in BinaryDataWriter, and CachedDataWriter.

◆ write() [2/16]

void write ( String  label,
int  a 
) throws IOException

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

Writes an anonymous field if label is null.

Implemented in BinaryDataWriter, and CachedDataWriter.

◆ write() [3/16]

void write ( String  label,
float  a 
) throws IOException

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

Writes an anonymous field if label is null.

Implemented in BinaryDataWriter, and CachedDataWriter.

◆ write() [4/16]

void write ( String  label,
double  a 
) throws IOException

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

Writes an anonymous field if label is null.

Implemented in BinaryDataWriter, and CachedDataWriter.

◆ write() [5/16]

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

Writes a one-dimensional array of strings.

Writes an anonymous field if label is null.

Implemented in AbstractDataWriter.

◆ write() [6/16]

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.

Implemented in BinaryDataWriter, and CachedDataWriter.

◆ write() [7/16]

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

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

Writes an anonymous field if label is null.

Implemented in AbstractDataWriter.

◆ write() [8/16]

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.

Implemented in BinaryDataWriter, and CachedDataWriter.

◆ write() [9/16]

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

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

Writes an anonymous field if label is null.

Implemented in AbstractDataWriter.

◆ write() [10/16]

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.

Implemented in BinaryDataWriter, and CachedDataWriter.

◆ write() [11/16]

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

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

Writes an anonymous field if label is null.

Implemented in AbstractDataWriter.

◆ write() [12/16]

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.

Implemented in BinaryDataWriter, and CachedDataWriter.

◆ write() [13/16]

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

Writes a two-dimensional array of strings.

Writes an anonymous field if label is null.

Implemented in BinaryDataWriter, and CachedDataWriter.

◆ write() [14/16]

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.

Implemented in BinaryDataWriter, and CachedDataWriter.

◆ write() [15/16]

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.

Implemented in BinaryDataWriter, and CachedDataWriter.

◆ write() [16/16]

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.

Implemented in BinaryDataWriter, and CachedDataWriter.


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