Package com.priint.pubserver.util
Class ByteArray64
- java.lang.Object
-
- com.priint.pubserver.util.ByteArray64
-
public class ByteArray64 extends java.lang.ObjectThis is an implementation of byte array requiring address space larger than 32 bits.
-
-
Constructor Summary
Constructors Constructor Description ByteArray64(long size)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byteget(long index)Method to get the data with a given indexstatic voidmain(java.lang.String[] args)Example testvoidread(java.io.InputStream inputStream)Simulates a single read which fills the entire array via several smaller reads.voidset(long index, byte b)Method to set the data with a given indexlongsize()voidwrite(java.io.OutputStream outputStream)Simulates a single read which fills the entire array via several smaller reads.
-
-
-
Method Detail
-
get
public byte get(long index)
Method to get the data with a given index- Parameters:
index- index of the data element- Returns:
- data as byte[][]
-
set
public void set(long index, byte b)Method to set the data with a given index- Parameters:
index- index of the data element
-
read
public void read(java.io.InputStream inputStream) throws java.io.IOExceptionSimulates a single read which fills the entire array via several smaller reads.- Parameters:
inputStream-- Throws:
java.io.IOException
-
write
public void write(java.io.OutputStream outputStream) throws java.io.IOExceptionSimulates a single read which fills the entire array via several smaller reads.- Parameters:
outputStream-- Throws:
java.io.IOException
-
size
public long size()
- Returns:
- size of the ByteArray
-
main
public static void main(java.lang.String[] args)
Example test- Parameters:
args- default- Throws:
java.io.IOException
-
-