net.talvi.puffinplot.data.file
Class AmsLoader

java.lang.Object
  extended by net.talvi.puffinplot.data.file.AmsLoader

public class AmsLoader
extends java.lang.Object

Turns an AGICO .ASC AMS file into a list of AMS tensors.


Constructor Summary
AmsLoader(java.io.File ascFile)
          Creates a new AMS laoder for a specified file.
 
Method Summary
 java.util.List<AmsData> readFile()
          Reads the file for which this loader was created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmsLoader

public AmsLoader(java.io.File ascFile)
Creates a new AMS laoder for a specified file.

Parameters:
ascFile - the file for which to create the loader
Method Detail

readFile

public java.util.List<AmsData> readFile()
                                 throws java.io.IOException
Reads the file for which this loader was created.

Returns:
the AMS tensor data in the file
Throws:
java.io.IOException - if there was an I/O error while reading the file