# org.das2.qds.buffer.CcsdsReader.PacketHandler

extend this class to handle a particular packet type.

***
<a name="packet-int-java.nio.ByteBuffer"></a>
# packet
packet( int packetId, <a href='https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html'>java.nio.ByteBuffer</a> buf ) &rarr; int

process the packet return a 0 if the data was processed correctly.

### Parameters:
packetId - an int
<br>buf - a ByteBuffer

### Returns:
an int


<a href="https://github.com/autoplot/dev/search?q=packet&unscoped_q=packet">[search for examples]</a>
<a href="https://github.com/autoplot/documentation/blob/master/javadoc/index-all.md">[return to index]</a>

