public class ArrayReaderWriter
extends java.lang.Object
Copyright (C) 2005 Vincent Cheung ([email protected], http://www.psi.toronto.edu/~vincent/) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Constructor and Description |
|---|
ArrayReaderWriter() |
| Modifier and Type | Method and Description |
|---|---|
static java.io.BufferedOutputStream |
getStream(java.lang.String filename)
Create a stream to the file specified by filename.
|
static void |
main(java.lang.String[] args) |
static double[] |
read1DArray(java.lang.String filename)
Reads an array from a file.
|
static boolean[] |
read1DBooleanArray(java.lang.String filename)
Reads an array from a file.
|
static float[] |
read1DFloatArray(java.lang.String filename)
Reads an array from a file.
|
static int[] |
read1DIntArray(java.lang.String filename)
Reads an array from a file.
|
static double[][] |
read2DArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static boolean[][] |
read2DBooleanArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static float[][] |
read2DFloatArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static int[][] |
read2DIntArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static double[][][] |
read3DArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static boolean[][][] |
read3DBooleanArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static float[][][] |
read3DFloatArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static int[][][] |
read3DIntArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static double[][][][] |
read4DArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static boolean[][][][] |
read4DBooleanArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static float[][][][] |
read4DFloatArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static int[][][][] |
read4DIntArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static double[][][][][] |
read5DArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static boolean[][][][][] |
read5DBooleanArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static float[][][][][] |
read5DFloatArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static int[][][][][] |
read5DIntArray(java.lang.String filename)
Reads a rectangular jagged array from a file.
|
static void |
write(boolean[][][][][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(boolean[][][][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(boolean[][][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(boolean[][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(boolean[] array,
java.lang.String filename)
Writes an array to a file.
|
static void |
write(double[][][][][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(double[][][][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(double[][][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(double[][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(double[] array,
java.lang.String filename)
Writes an array to a file.
|
static void |
write(float[][][][][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(float[][][][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(float[][][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(float[][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(float[] array,
java.lang.String filename)
Writes an array to a file.
|
static void |
write(int[][][][][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(int[][][][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(int[][][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(int[][] array,
java.lang.String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(int[] array,
java.lang.String filename)
Writes an array to a file.
|
public static void write(double[] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(double[][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(double[][][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(double[][][][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(double[][][][][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static double[] read1DArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static double[][] read2DArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static double[][][] read3DArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static double[][][][] read4DArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static double[][][][][] read5DArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static void write(float[] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(float[][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(float[][][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(float[][][][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(float[][][][][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static float[] read1DFloatArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static float[][] read2DFloatArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static float[][][] read3DFloatArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static float[][][][] read4DFloatArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static float[][][][][] read5DFloatArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static void write(int[] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(int[][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(int[][][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(int[][][][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(int[][][][][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static int[] read1DIntArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static int[][] read2DIntArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static int[][][] read3DIntArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static int[][][][] read4DIntArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static int[][][][][] read5DIntArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static void write(boolean[] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(boolean[][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(boolean[][][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(boolean[][][][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static void write(boolean[][][][][] array,
java.lang.String filename)
throws java.io.IOException
array - the array to write to the filefilename - the name of the file to write tojava.io.IOExceptionpublic static boolean[] read1DBooleanArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static boolean[][] read2DBooleanArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static boolean[][][] read3DBooleanArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static boolean[][][][] read4DBooleanArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static boolean[][][][][] read5DBooleanArray(java.lang.String filename)
throws java.io.IOException
filename - the name of the file containing the arrayjava.io.IOExceptionpublic static java.io.BufferedOutputStream getStream(java.lang.String filename)
throws java.io.IOException
filename - the name of the file.java.io.IOExceptionpublic static void main(java.lang.String[] args)
JHepSim. A part of HSTOOLS. version-1.2