public Counter64(long value) { setValue(value); }
public Counter64(long value) { setValue(value); }
public Counter64(long value) { setValue(value); }
public void decodeBER(BERInputStream inputStream) throws java.io.IOException { BER.MutableByte type = new BER.MutableByte(); long newValue = BER.decodeUnsignedInt64(inputStream, type); if (type.getValue() != BER.COUNTER64) { throw new IOException("Wrong type encountered when decoding Counter64: " + type.getValue()); } setValue(newValue); }
public void decodeBER(BERInputStream inputStream) throws java.io.IOException { BER.MutableByte type = new BER.MutableByte(); long newValue = BER.decodeUnsignedInt64(inputStream, type); if (type.getValue() != BER.COUNTER64) { throw new IOException("Wrong type encountered when decoding Counter64: " + type.getValue()); } setValue(newValue); }
public void decodeBER(BERInputStream inputStream) throws java.io.IOException { BER.MutableByte type = new BER.MutableByte(); long newValue = BER.decodeUnsignedInt64(inputStream, type); if (type.getValue() != BER.COUNTER64) { throw new IOException("Wrong type encountered when decoding Counter64: " + type.getValue()); } setValue(newValue); }
/** * Creates the next sub-index OID value. * @return * a sub-index value corresponding to the seed sub-index type. */ public synchronized OID getNextSubIndex() { if (seedSubIndex instanceof Integer32) { Integer32 i = (Integer32)seedSubIndex; i.setValue(i.getValue()+1); } else if (seedSubIndex instanceof UnsignedInteger32) { UnsignedInteger32 ui = (UnsignedInteger32)seedSubIndex; ui.setValue(ui.getValue()+1); } else if (seedSubIndex instanceof Counter64) { Counter64 c = (Counter64)seedSubIndex; c.setValue(c.getValue()+1); } return seedSubIndex.toSubIndex(impliedLength); } }
/** * Creates the next sub-index OID value. * @return * a sub-index value corresponding to the seed sub-index type. */ public synchronized OID getNextSubIndex() { if (seedSubIndex instanceof Integer32) { Integer32 i = (Integer32)seedSubIndex; i.setValue(i.getValue()+1); } else if (seedSubIndex instanceof UnsignedInteger32) { UnsignedInteger32 ui = (UnsignedInteger32)seedSubIndex; ui.setValue(ui.getValue()+1); } else if (seedSubIndex instanceof Counter64) { Counter64 c = (Counter64)seedSubIndex; c.setValue(c.getValue()+1); } return seedSubIndex.toSubIndex(impliedLength); } }