SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
DataWriter.java
1/*
2 * Class: DataWriter
3 * Description: Data writer interface
4 * Environment: Java
5 * Software: SSJ
6 * Copyright (C) 2001 Pierre L'Ecuyer and Universite de Montreal
7 * Organization: DIRO, Universite de Montreal
8 * @author David Munger
9 * @since August 2009
10 *
11 *
12 * Licensed under the Apache License, Version 2.0 (the "License");
13 * you may not use this file except in compliance with the License.
14 * You may obtain a copy of the License at
15 *
16 * http://www.apache.org/licenses/LICENSE-2.0
17 *
18 * Unless required by applicable law or agreed to in writing, software
19 * distributed under the License is distributed on an "AS IS" BASIS,
20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 * See the License for the specific language governing permissions and
22 * limitations under the License.
23 *
24 */
25package umontreal.ssj.util.io;
26
27import java.io.IOException;
28
34public interface DataWriter {
35
39
44 public void write(String label, String s) throws IOException;
45
50 public void write(String label, int a) throws IOException;
51
56 public void write(String label, float a) throws IOException;
57
62 public void write(String label, double a) throws IOException;
63
67
71
76 public void write(String label, String[] a) throws IOException;
77
82 public void write(String label, String[] a, int n) throws IOException;
83
88 public void write(String label, int[] a) throws IOException;
89
94 public void write(String label, int[] a, int n) throws IOException;
95
100 public void write(String label, float[] a) throws IOException;
101
106 public void write(String label, float[] a, int n) throws IOException;
107
112 public void write(String label, double[] a) throws IOException;
113
118 public void write(String label, double[] a, int n) throws IOException;
119
123
127
132 public void write(String label, String[][] a) throws IOException;
133
138 public void write(String label, int[][] a) throws IOException;
139
144 public void write(String label, float[][] a) throws IOException;
145
150 public void write(String label, double[][] a) throws IOException;
151
155
159
163 public void close() throws IOException;
164
165}
166
void write(String label, float[] a)
Writes a one-dimensional array of 32-bit floats (big endian).
void write(String label, float a)
Writes an atomic 32-bit float (big endian).
void write(String label, String s)
Writes an atomic string field.
void write(String label, int a)
Writes an atomic 32-bit integer (big endian).
void write(String label, int[][] a)
Writes a two-dimensional array of 32-bit integers (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.
void write(String label, String[] a, int n)
Writes the first n elements of a one-dimensional array of strings.
void write(String label, double[] a)
Writes a one-dimensional array of 64-bit doubles (big endian).
void write(String label, double[][] a)
Writes a two-dimensional array of 64-bit doubles (big endian).
void close()
Flushes any pending data and closes the output stream.
void write(String label, float[][] a)
Writes a two-dimensional array of 32-bit floats (big endian).
void write(String label, float[] a, int n)
Writes the first n elements of a one-dimensional array of 32-bit floats (big endian).
void write(String label, int[] a, int n)
Writes the first n elements of a one-dimensional array of 32-bit integers (big endian).
void write(String label, double a)
Writes an atomic 64-bit double (big endian).
void write(String label, String[][] a)
Writes a two-dimensional array of strings.
void write(String label, double[] a, int n)
Writes the first n elements of a one-dimensional array of 64-bit doubles (big endian).