edu.sc.seis.cormorant.seismogram
Class BudLightWriter

java.lang.Object
  extended by edu.sc.seis.cormorant.seismogram.BudLightWriter
All Implemented Interfaces:
java.lang.Runnable

public class BudLightWriter
extends java.lang.Object
implements java.lang.Runnable


Field Summary
static java.text.DecimalFormat fourDigit
           
static java.text.DecimalFormat threeDigit
           
static java.text.DecimalFormat twoDigit
           
 
Constructor Summary
BudLightWriter(java.io.File dataDir)
           
BudLightWriter(java.io.File dataDir, DataRecordQueue inQueue)
           
 
Method Summary
static java.lang.String calcFilename(edu.sc.seis.seisFile.mseed.DataHeader head)
           
static java.lang.String formatFile(java.lang.String net, java.lang.String sta, java.lang.String loc, java.lang.String chan, int year, int jday, int hour)
           
 java.io.File getDataDir()
           
 DataRecordQueue getQueue()
           
protected  void outputToFile(java.util.List<edu.sc.seis.seisFile.mseed.DataRecord> drList)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

twoDigit

public static final java.text.DecimalFormat twoDigit

threeDigit

public static final java.text.DecimalFormat threeDigit

fourDigit

public static final java.text.DecimalFormat fourDigit
Constructor Detail

BudLightWriter

public BudLightWriter(java.io.File dataDir)

BudLightWriter

public BudLightWriter(java.io.File dataDir,
                      DataRecordQueue inQueue)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

getQueue

public DataRecordQueue getQueue()

getDataDir

public java.io.File getDataDir()

calcFilename

public static java.lang.String calcFilename(edu.sc.seis.seisFile.mseed.DataHeader head)

outputToFile

protected void outputToFile(java.util.List<edu.sc.seis.seisFile.mseed.DataRecord> drList)
                     throws java.io.IOException,
                            edu.sc.seis.seisFile.mseed.SeedFormatException
Throws:
java.io.IOException
edu.sc.seis.seisFile.mseed.SeedFormatException

formatFile

public static java.lang.String formatFile(java.lang.String net,
                                          java.lang.String sta,
                                          java.lang.String loc,
                                          java.lang.String chan,
                                          int year,
                                          int jday,
                                          int hour)