public void setEmptyForRestart ( int outputDepId ) { m_emptyForRestart = true ; ParameterSet blank = ParameterSet . emptyParameterSet ( ) ; ByteBuffer mt = ByteBuffer . allocate ( blank . getSerializedSize ( ) ) ; try { blank . flattenToBuffer ( mt ) ; } catch ( IOException ioe ) { // Shouldn't ever happen, just bail out to not-obviously equivalent behavior mt = ByteBuffer . allocate ( 2 ) ; mt . putShort ( ( short ) 0 ) ; } addFragment ( EMPTY_HASH , outputDepId , mt ) ; }
fragment with the provided outputDepId