Package edu.sc.seis.seisFile.gcf
Class SerialTransportHeader
- java.lang.Object
-
- edu.sc.seis.seisFile.gcf.SerialTransportHeader
-
public class SerialTransportHeader extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SerialTransportHeader(int blockSeqNum, int blockSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
ASCII_G
public static final int ASCII_G
- See Also:
- Constant Field Values
-
SIZE
public static final int SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
write
public void write(java.io.DataOutput out) throws java.io.IOException
- Throws:
java.io.IOException
-
fromBytes
public static SerialTransportHeader fromBytes(byte[] data, int offset) throws GCFFormatException
- 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
-
-