|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.knmi.orfeus.seedlink.SLPacket
public class SLPacket
Class to hold and decode a SeedLink packet.
Blockette
Field Summary | |
---|---|
protected edu.iris.Fissures.seed.container.Blockette |
blockette
The Blockette conained in msrecord. |
static java.lang.String |
ENDSIGNATURE
SeedLink END signature. |
static java.lang.String |
ERRORSIGNATURE
SeedLink ERROR signature. |
static java.lang.String |
INFOSIGNATURE
SeedLink INFO packet signature. |
byte[] |
msrecord
The mini-SEED record |
static java.lang.String |
SIGNATURE
SeedLink header signature. |
static SLPacket |
SLERROR
Error flag - indicates server reported an error. |
byte[] |
slhead
The SeedLink header |
static int |
SLHEADSIZE
SeedLink packet header size. |
static SLPacket |
SLNOPACKET
No packet flag - indicates no data availbale. |
static int |
SLRECSIZE
Mini-SEED record size. |
static SLPacket |
SLTERMINATE
Terminate flag - connection was closed by the server or the termination sequence completed. |
static int |
TYPE_SLINF
Packet type is non-terminated info packet. |
static int |
TYPE_SLINFT
Packet type is terminated info packet. |
Constructor Summary | |
---|---|
protected |
SLPacket()
Empty constructor used for internal constants |
|
SLPacket(byte[] bytes,
int offset)
Creates a new instance of SLPacket by converting the specified subarray of bytes. |
Method Summary | |
---|---|
edu.iris.Fissures.seed.container.Blockette |
getBlockette()
Returns the Blockette contained in this SLPacket. |
int |
getSequenceNumber()
Check for 'SL' signature and get sequence number. |
int |
getType()
Determines the type of packet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_SLINFT
public static final int TYPE_SLINF
public static final SLPacket SLTERMINATE
public static final SLPacket SLNOPACKET
public static final SLPacket SLERROR
public static final int SLHEADSIZE
public static final int SLRECSIZE
public static java.lang.String SIGNATURE
public static java.lang.String INFOSIGNATURE
public static java.lang.String ERRORSIGNATURE
public static java.lang.String ENDSIGNATURE
public byte[] slhead
public byte[] msrecord
protected edu.iris.Fissures.seed.container.Blockette blockette
Constructor Detail |
---|
protected SLPacket()
public SLPacket(byte[] bytes, int offset) throws SeedLinkException
bytes
- The bytes to be converted.offset
- Index of the first byte to convert.
SeedLinkException
- if there are not enough bytes in the subarrayMethod Detail |
---|
public int getSequenceNumber()
public int getType() throws SeedLinkException
SeedLinkException
public edu.iris.Fissures.seed.container.Blockette getBlockette() throws SeedLinkException
SeedLinkException
- on error.Blockette
,
SeedObjectBuilder
,
SeedImportDirector
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |