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 toIOException
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 toIOException
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 toIOException
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 toIOException
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 toIOException
public static double[] read1DArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static double[][] read2DArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static double[][][] read3DArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static double[][][][] read4DArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static double[][][][][] read5DArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static void write(float[] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static void write(float[][] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static void write(float[][][] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static void write(float[][][][] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static void write(float[][][][][] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static float[] read1DFloatArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static float[][] read2DFloatArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static float[][][] read3DFloatArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static float[][][][] read4DFloatArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static float[][][][][] read5DFloatArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static void write(int[] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static void write(int[][] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static void write(int[][][] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static void write(int[][][][] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static void write(int[][][][][] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static int[] read1DIntArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static int[][] read2DIntArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static int[][][] read3DIntArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static int[][][][] read4DIntArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static int[][][][][] read5DIntArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static void write(boolean[] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static void write(boolean[][] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static void write(boolean[][][] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static void write(boolean[][][][] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static void write(boolean[][][][][] array, String filename) throws IOException
array
- the array to write to the filefilename
- the name of the file to write toIOException
public static boolean[] read1DBooleanArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static boolean[][] read2DBooleanArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static boolean[][][] read3DBooleanArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static boolean[][][][] read4DBooleanArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static boolean[][][][][] read5DBooleanArray(String filename) throws IOException
filename
- the name of the file containing the arrayIOException
public static BufferedOutputStream getStream(String filename) throws IOException
filename
- the name of the file.IOException
public static void main(String[] args)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics