Class ArrayIOUtils

java.lang.Object
  |
  +--ArrayIOUtils

public class ArrayIOUtils
extends java.lang.Object


Constructor Summary
ArrayIOUtils()
           
 
Method Summary
static double[] LoadDoubleArray()
          Loads data from a text file specified by user input.
static double[] LoadDoubleArray(java.lang.String pathandfilename)
          Loads data from a text file.
static void main(java.lang.String[] argv)
          Tests the ArrayIOUtils methods.
static void printDoubleArray(double[] D)
          Prints double data to the screen.
static void writeDoubleArray(double[] D)
          Writes double data to a file file name is specified by user input
static void writeDoubleArray(double[] D, java.lang.String filename)
          Writes double data to a file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayIOUtils

public ArrayIOUtils()
Method Detail

main

public static void main(java.lang.String[] argv)
Tests the ArrayIOUtils methods.

This method would not normally be invoked by users of the ArrayIOUtils class.


LoadDoubleArray

public static double[] LoadDoubleArray()
Loads data from a text file specified by user input. file should contain doubles separated by spaces.


LoadDoubleArray

public static double[] LoadDoubleArray(java.lang.String pathandfilename)
Loads data from a text file. file should contain doubles all on one line, separated by spaces.

Parameters:
pathandfilename - is the name of the file, including full path.

printDoubleArray

public static void printDoubleArray(double[] D)
Prints double data to the screen. truncates decimals somewhat for reading.

Parameters:
D - is the data to print out.

writeDoubleArray

public static void writeDoubleArray(double[] D)
Writes double data to a file file name is specified by user input

Parameters:
D - is the data to store to a file.

writeDoubleArray

public static void writeDoubleArray(double[] D,
                                    java.lang.String filename)
Writes double data to a file

Parameters:
D - is the data to store to a file.
filename - is the filename (including full path).