java.lang.Object
com.yaftp.utils.Decimal_Increment
- class Decimal_Increment
- extends java.lang.Object
Copyright Jean-Yves MENGANT 1998,1999,2000
The class bellow deals with PACKED DECIMAL
conversions A portable conversions
Only the final PackedDecimal class should be used
other class are for internal usage only
NumberFormatException may be Thrown by this class on
invalid packed decimal format
// Construct using an existing byte array(Supose to point on
// a valid packed decimal format or to be translated later
// with toPackedDecimal method
public PackedDecimal( byte Packed_Origin[] ,
int Offset ,
int IntSize ,
int DecSize
)
// Build a packed decimal from a string number
public void toPackedDecimal( String Number )
// Translate current Packed into a String representation
public String toString()
|
Field Summary |
private int |
_Inc
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_Inc
private int _Inc
Decimal_Increment
Decimal_Increment()
SetValue
public void SetValue(int Value)
Increment
public int Increment()
Decrement
public int Decrement()
GetValue
public int GetValue()