|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sc.seis.seisFile.seedlink.SeedlinkReader
public class SeedlinkReader
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_HOST
|
static int |
DEFAULT_PORT
|
static int |
DEFAULT_TIMEOUT_SECOND
|
static java.lang.String |
INFO_ALL
|
static java.lang.String |
INFO_CAPABILITIES
|
static java.lang.String |
INFO_CONNECTIONS
|
static java.lang.String |
INFO_GAPS
|
static java.lang.String |
INFO_ID
|
static java.lang.String |
INFO_STATIONS
|
static java.lang.String |
INFO_STREAMS
|
Constructor Summary | |
---|---|
SeedlinkReader()
default of IRIS DMC |
|
SeedlinkReader(java.lang.String host)
uses the default port of 18000 |
|
SeedlinkReader(java.lang.String host,
int port)
|
|
SeedlinkReader(java.lang.String host,
int port,
int timeoutSeconds)
|
|
SeedlinkReader(java.lang.String host,
int port,
int timeoutSeconds,
boolean verbose)
|
Method Summary | |
---|---|
boolean |
available()
true if there is enough data in the instream to possibly read a data record. |
void |
close()
|
void |
endHandshake()
|
java.lang.String |
getHost()
|
int |
getPort()
|
java.io.PrintWriter |
getVerboseWriter()
|
boolean |
hasNext()
|
void |
info(java.lang.String level)
send an INFO command. |
protected void |
internalSendCmd(java.lang.String cmd)
|
boolean |
isConnected()
|
boolean |
isVerbose()
|
SeedlinkPacket |
next()
|
void |
reconnect()
|
void |
sendCmd(java.lang.String cmd)
sends a seedlink modifier command, generally should be limited to STATION, SELECT FETCH and DATA. |
void |
setVerbose(boolean verbose)
|
void |
setVerboseWriter(java.io.PrintWriter verboseWriter)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_HOST
public static final int DEFAULT_PORT
public static final int DEFAULT_TIMEOUT_SECOND
public static final java.lang.String INFO_ID
public static final java.lang.String INFO_CAPABILITIES
public static final java.lang.String INFO_STATIONS
public static final java.lang.String INFO_STREAMS
public static final java.lang.String INFO_GAPS
public static final java.lang.String INFO_CONNECTIONS
public static final java.lang.String INFO_ALL
Constructor Detail |
---|
public SeedlinkReader() throws java.net.UnknownHostException, java.io.IOException
java.net.UnknownHostException
java.io.IOException
public SeedlinkReader(java.lang.String host) throws java.net.UnknownHostException, java.io.IOException
java.net.UnknownHostException
java.io.IOException
public SeedlinkReader(java.lang.String host, int port) throws java.net.UnknownHostException, java.io.IOException
java.net.UnknownHostException
java.io.IOException
public SeedlinkReader(java.lang.String host, int port, int timeoutSeconds) throws java.net.UnknownHostException, java.io.IOException
java.net.UnknownHostException
java.io.IOException
public SeedlinkReader(java.lang.String host, int port, int timeoutSeconds, boolean verbose) throws java.net.UnknownHostException, java.io.IOException
java.net.UnknownHostException
java.io.IOException
Method Detail |
---|
public boolean hasNext() throws java.io.IOException
java.io.IOException
public boolean available() throws java.io.IOException
java.io.IOException
public SeedlinkPacket next() throws java.io.IOException, SeedlinkException
java.io.IOException
SeedlinkException
public void info(java.lang.String level) throws java.io.IOException
java.io.IOException
public void endHandshake() throws java.io.IOException
java.io.IOException
public void close()
public boolean isConnected()
public void reconnect() throws java.io.IOException, SeedlinkException
java.io.IOException
SeedlinkException
public void sendCmd(java.lang.String cmd) throws java.io.IOException, SeedlinkException
java.io.IOException
SeedlinkException
protected void internalSendCmd(java.lang.String cmd) throws java.io.IOException, SeedlinkException
java.io.IOException
SeedlinkException
public boolean isVerbose()
public void setVerbose(boolean verbose)
public java.io.PrintWriter getVerboseWriter()
public void setVerboseWriter(java.io.PrintWriter verboseWriter)
public java.lang.String getHost()
public int getPort()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |