edu.sc.seis.seisFile.gcf
Class SerialTransportHeader

java.lang.Object
  extended by edu.sc.seis.seisFile.gcf.SerialTransportHeader

public class SerialTransportHeader
extends java.lang.Object


Field Summary
static int ASCII_G
           
static int SIZE
           
 
Constructor Summary
SerialTransportHeader(int blockSeqNum, int blockSize)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

SerialTransportHeader

public SerialTransportHeader(int blockSeqNum,
                             int blockSize)
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 class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object