com.microfocus.cobol.lang
Class CobolBigInteger

java.lang.Object
  |
  +--com.microfocus.cobol.lang.CobolBigInteger
All Implemented Interfaces:
DataType

public class CobolBigInteger
extends Object
implements DataType

Wrapper class for a BigInteger class

Copyright: Copyright (c) 2002-2003
Company: Micro Focus International Ltd

Since:
Net Express 4.0, Server Express 4.0
Version:
3.5, 2/4/03

Constructor Summary
CobolBigInteger()
          Construct a CobolBigInteger given a BigInteger.valueOf(0)
CobolBigInteger(BigInteger value)
          Construct a CobolBigInteger given a BigInteger value
CobolBigInteger(String value)
          Construct a CobolBigInteger given a string
 
Method Summary
 byte[] getBytes()
          get the comp3 representation of a CobolBigInteger
 BigInteger getValue()
          get a BigInteger value of a CobolBigInteger
 void setValue(BigInteger value)
          Allow a value of CobolBigInteger to be changed
 void synchronizeData()
          synchronizeData the COBOL represention of a CobolBigInteger with the Java internal representation.
 String toString()
          Return a string representation of a BigInteger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CobolBigInteger

public CobolBigInteger()
Construct a CobolBigInteger given a BigInteger.valueOf(0)

CobolBigInteger

public CobolBigInteger(BigInteger value)
Construct a CobolBigInteger given a BigInteger value
Parameters:
value -  

CobolBigInteger

public CobolBigInteger(String value)
Construct a CobolBigInteger given a string
Parameters:
value -  
Method Detail

getBytes

public byte[] getBytes()
                throws CobolException,
                       Exception
get the comp3 representation of a CobolBigInteger
Specified by:
getBytes in interface DataType
Returns:
a byte[]
Throws:
CobolException -  
Exception -  

getValue

public BigInteger getValue()
get a BigInteger value of a CobolBigInteger
Returns:
 

setValue

public void setValue(BigInteger value)
Allow a value of CobolBigInteger to be changed
Parameters:
value -  

synchronizeData

public void synchronizeData()
                     throws CobolException,
                            Exception
synchronizeData the COBOL represention of a CobolBigInteger with the Java internal representation.
Specified by:
synchronizeData in interface DataType
Throws:
CobolException -  
Exception -  

toString

public String toString()
Return a string representation of a BigInteger
Overrides:
toString in class Object
Returns:
a string



Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.