edu.sc.seis.seisFile.usgsCWB
Class CWBReader

java.lang.Object
  extended by edu.sc.seis.seisFile.StringMSeedQueryReader
      extended by edu.sc.seis.seisFile.usgsCWB.CWBReader
All Implemented Interfaces:
MSeedQueryReader

public class CWBReader
extends StringMSeedQueryReader


Field Summary
static java.lang.String DEFAULT_HOST
           
static int DEFAULT_PORT
           
protected  int timeoutMillis
           
 
Fields inherited from class edu.sc.seis.seisFile.StringMSeedQueryReader
bytesRead, seconds
 
Constructor Summary
CWBReader()
           
CWBReader(java.lang.String host)
           
CWBReader(java.lang.String host, int port)
           
CWBReader(java.lang.String host, int port, int timeoutMillis)
           
 
Method Summary
protected  java.lang.String createQuery(java.lang.String network, java.lang.String station, java.lang.String location, java.lang.String channel)
           
 java.lang.String createQuery(java.lang.String network, java.lang.String station, java.lang.String location, java.lang.String channel, java.util.Date begin, java.util.Date end)
           
 java.lang.String getHost()
           
 int getPort()
           
 int getTimeoutMillis()
           
protected  java.lang.String leftPad(java.lang.String in, int length)
           
 java.util.List<DataRecord> read(java.lang.String query)
           
 void setTimeoutMillis(int timeoutMillis)
           
 
Methods inherited from class edu.sc.seis.seisFile.StringMSeedQueryReader
isTimed, isVerbose, read, setTimed, setVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeoutMillis

protected int timeoutMillis

DEFAULT_HOST

public static final java.lang.String DEFAULT_HOST
See Also:
Constant Field Values

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values
Constructor Detail

CWBReader

public CWBReader()

CWBReader

public CWBReader(java.lang.String host)

CWBReader

public CWBReader(java.lang.String host,
                 int port)

CWBReader

public CWBReader(java.lang.String host,
                 int port,
                 int timeoutMillis)
Method Detail

createQuery

protected java.lang.String createQuery(java.lang.String network,
                                       java.lang.String station,
                                       java.lang.String location,
                                       java.lang.String channel)

createQuery

public java.lang.String createQuery(java.lang.String network,
                                    java.lang.String station,
                                    java.lang.String location,
                                    java.lang.String channel,
                                    java.util.Date begin,
                                    java.util.Date end)
Specified by:
createQuery in class StringMSeedQueryReader

read

public java.util.List<DataRecord> read(java.lang.String query)
                                throws java.io.IOException,
                                       SeedFormatException
Specified by:
read in class StringMSeedQueryReader
Throws:
java.io.IOException
SeedFormatException

leftPad

protected java.lang.String leftPad(java.lang.String in,
                                   int length)

getTimeoutMillis

public int getTimeoutMillis()

setTimeoutMillis

public void setTimeoutMillis(int timeoutMillis)

getHost

public java.lang.String getHost()

getPort

public int getPort()