Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.yaftp.utils
Class Decimal_Increment  view Decimal_Increment download Decimal_Increment.java

java.lang.Object
  extended bycom.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
           
 
Constructor Summary
(package private) Decimal_Increment()
           
 
Method Summary
 int Decrement()
           
 int GetValue()
           
 int Increment()
           
 void SetValue(int Value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_Inc

private int _Inc
Constructor Detail

Decimal_Increment

Decimal_Increment()
Method Detail

SetValue

public void SetValue(int Value)

Increment

public int Increment()

Decrement

public int Decrement()

GetValue

public int GetValue()