Package edu.sc.seis.seisFile.gcf
Class SerialTransportHeader
java.lang.Object
edu.sc.seis.seisFile.gcf.SerialTransportHeader
public class SerialTransportHeader
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SerialTransportHeader(int blockSeqNum, int blockSize)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static SerialTransportHeader
fromBytes(byte[] data, int offset)
int
getBlockSeqNum()
int
getBlockSize()
int
hashCode()
byte[]
toBytes()
java.lang.String
toString()
void
write(java.io.DataOutput out)
-
Field Details
-
ASCII_G
public static final int ASCII_G- See Also:
- Constant Field Values
-
SIZE
public static final int SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
SerialTransportHeader
public SerialTransportHeader(int blockSeqNum, int blockSize)
-
-
Method Details
-
write
public void write(java.io.DataOutput out) throws java.io.IOException- Throws:
java.io.IOException
-
fromBytes
- Throws:
GCFFormatException
-
toBytes
public byte[] toBytes() -
getBlockSeqNum
public int getBlockSeqNum() -
getBlockSize
public int getBlockSize() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-