Expresso 5-5-0

com.jcorporate.expresso.core.misc
Class ByteArrayCounter

java.lang.Object
  extended bycom.jcorporate.expresso.core.misc.ByteArrayCounter

public class ByteArrayCounter
extends Object

ByteArrayCounter.java Copyright 2000, 2001 Jcorporate Ltd.


Constructor Summary
ByteArrayCounter(int arraySize)
          ByteArrayCounter: Initialize a counter that uses an array of bytes
 
Method Summary
 byte[] getBytes()
          getBytes: Return a copy of the byte array.
 void increment()
          increment: Increment the value stored in the byte array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayCounter

public ByteArrayCounter(int arraySize)
ByteArrayCounter: Initialize a counter that uses an array of bytes

Parameters:
arraySize - the number of bytes the counter array is supposed to take eg 4 or 8
Method Detail

getBytes

public byte[] getBytes()
getBytes: Return a copy of the byte array.

Returns:
Return a copy of the byte array

increment

public void increment()
increment: Increment the value stored in the byte array


Expresso 5-5-0

Please see www.jcorporate.com for information about new Expresso releases.