public class ArrayReaderWriter extends 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 BufferedOutputStream |
getStream(String filename)
Create a stream to the file specified by filename.
|
static void |
main(String[] args) |
static double[] |
read1DArray(String filename)
Reads an array from a file.
|
static boolean[] |
read1DBooleanArray(String filename)
Reads an array from a file.
|
static float[] |
read1DFloatArray(String filename)
Reads an array from a file.
|
static int[] |
read1DIntArray(String filename)
Reads an array from a file.
|
static double[][] |
read2DArray(String filename)
Reads a rectangular jagged array from a file.
|
static boolean[][] |
read2DBooleanArray(String filename)
Reads a rectangular jagged array from a file.
|
static float[][] |
read2DFloatArray(String filename)
Reads a rectangular jagged array from a file.
|
static int[][] |
read2DIntArray(String filename)
Reads a rectangular jagged array from a file.
|
static double[][][] |
read3DArray(String filename)
Reads a rectangular jagged array from a file.
|
static boolean[][][] |
read3DBooleanArray(String filename)
Reads a rectangular jagged array from a file.
|
static float[][][] |
read3DFloatArray(String filename)
Reads a rectangular jagged array from a file.
|
static int[][][] |
read3DIntArray(String filename)
Reads a rectangular jagged array from a file.
|
static double[][][][] |
read4DArray(String filename)
Reads a rectangular jagged array from a file.
|
static boolean[][][][] |
read4DBooleanArray(String filename)
Reads a rectangular jagged array from a file.
|
static float[][][][] |
read4DFloatArray(String filename)
Reads a rectangular jagged array from a file.
|
static int[][][][] |
read4DIntArray(String filename)
Reads a rectangular jagged array from a file.
|
static double[][][][][] |
read5DArray(String filename)
Reads a rectangular jagged array from a file.
|
static boolean[][][][][] |
read5DBooleanArray(String filename)
Reads a rectangular jagged array from a file.
|
static float[][][][][] |
read5DFloatArray(String filename)
Reads a rectangular jagged array from a file.
|
static int[][][][][] |
read5DIntArray(String filename)
Reads a rectangular jagged array from a file.
|
static void |
write(boolean[][][][][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(boolean[][][][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(boolean[][][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(boolean[][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(boolean[] array,
String filename)
Writes an array to a file.
|
static void |
write(double[][][][][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(double[][][][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(double[][][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(double[][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(double[] array,
String filename)
Writes an array to a file.
|
static void |
write(float[][][][][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(float[][][][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(float[][][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(float[][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(float[] array,
String filename)
Writes an array to a file.
|
static void |
write(int[][][][][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(int[][][][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(int[][][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(int[][] array,
String filename)
Writes a rectangular jagged array to a file.
|
static void |
write(int[] array,
String filename)
Writes an array to a file.
|
public static void write(double[] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(double[][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(double[][][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(double[][][][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(double[][][][][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static double[] read1DArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static double[][] read2DArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static double[][][] read3DArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static double[][][][] read4DArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static double[][][][][] read5DArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static void write(float[] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(float[][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(float[][][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(float[][][][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(float[][][][][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static float[] read1DFloatArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static float[][] read2DFloatArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static float[][][] read3DFloatArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static float[][][][] read4DFloatArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static float[][][][][] read5DFloatArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static void write(int[] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(int[][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(int[][][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(int[][][][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(int[][][][][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static int[] read1DIntArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static int[][] read2DIntArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static int[][][] read3DIntArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static int[][][][] read4DIntArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static int[][][][][] read5DIntArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static void write(boolean[] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(boolean[][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(boolean[][][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(boolean[][][][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static void write(boolean[][][][][] array,
String filename)
throws IOException
array - the array to write to the filefilename - the name of the file to write toIOExceptionpublic static boolean[] read1DBooleanArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static boolean[][] read2DBooleanArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static boolean[][][] read3DBooleanArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static boolean[][][][] read4DBooleanArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static boolean[][][][][] read5DBooleanArray(String filename) throws IOException
filename - the name of the file containing the arrayIOExceptionpublic static BufferedOutputStream getStream(String filename) throws IOException
filename - the name of the file.IOExceptionpublic static void main(String[] args)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics