edu.sc.seis.seisFile.psn
Class PSNDataFile

java.lang.Object
  extended by edu.sc.seis.seisFile.psn.PSNDataFile

public class PSNDataFile
extends java.lang.Object

PSNDataFile.java See http://www.seismicnet.com/psnformat4.html


Constructor Summary
PSNDataFile(java.io.DataInputStream dis)
          New constructor that takes DataInputStream.
PSNDataFile(java.lang.String filename)
          Old constructor that takes file name
 
Method Summary
static byte[] chopToLength(byte[] byteArray)
           
 PSNEventRecord[] getEventRecords()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PSNDataFile

public PSNDataFile(java.lang.String filename)
            throws java.io.FileNotFoundException,
                   java.io.IOException
Old constructor that takes file name

Throws:
java.io.FileNotFoundException
java.io.IOException

PSNDataFile

public PSNDataFile(java.io.DataInputStream dis)
            throws java.io.FileNotFoundException,
                   java.io.IOException
New constructor that takes DataInputStream.

Throws:
java.io.FileNotFoundException
java.io.IOException
Method Detail

getEventRecords

public PSNEventRecord[] getEventRecords()

chopToLength

public static byte[] chopToLength(byte[] byteArray)

main

public static void main(java.lang.String[] args)