* @author Matthew Khouzam
* @author Simon Marchi
*/
-public class StreamInputPacketReader implements IDefinitionScope {
+public class StreamInputPacketReader implements IDefinitionScope, AutoCloseable {
// ------------------------------------------------------------------------
// Attributes
/**
* Dispose the StreamInputPacketReader
*
- * @since 2.0
+ * @since 3.0
*/
- public void dispose() {
+ @Override
+ public void close() {
fBitBuffer.setByteBuffer(null);
}