pl.edu.pjwstk.yaod.util
Class NewBits

java.lang.Object
  |
  +--pl.edu.pjwstk.yaod.util.Bits
        |
        +--pl.edu.pjwstk.yaod.util.NewBits

public class NewBits
extends Bits

Rozszerza Bits o kilka uzytecznych elementow majacych za zadanie zasymulowac prace na wskaznikach, znany c.

Author:
M. Lentner, raist@ertel.com.pl

Field Summary
static byte BYTE_SIZE
           
static byte INT_SIZE
           
static byte SHORT_SIZE
           
 
Constructor Summary
NewBits()
           
 
Method Summary
static byte[] concat(byte[] arr1, byte[] arr2)
           
static byte[] concat(byte[] arr1, byte[] arr2, int arr2length)
           
static byte[] getByte(byte val)
           
static byte[] getShort(short val)
          Zwraca wartosc short zapisana na 2 bajtach.
 
Methods inherited from class pl.edu.pjwstk.yaod.util.Bits
getBoolean, getChar, getDouble, getFloat, getInt, getLong, getShort, putBoolean, putChar, putDouble, putFloat, putInt, putLong, putShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BYTE_SIZE

public static final byte BYTE_SIZE

SHORT_SIZE

public static final byte SHORT_SIZE

INT_SIZE

public static final byte INT_SIZE
Constructor Detail

NewBits

public NewBits()
Method Detail

getShort

public static byte[] getShort(short val)
Zwraca wartosc short zapisana na 2 bajtach.
Parameters:
val - wartosc do zakodowania.
Returns:
tablica zawierajaca wartosc short.

getByte

public static byte[] getByte(byte val)
Parameters:
paramName - comments
Returns:
comments
Throws:
XxxxxxException - if ...

concat

public static byte[] concat(byte[] arr1,
                            byte[] arr2)
Returns:
comments
Throws:
XxxxxxException - if ...

concat

public static byte[] concat(byte[] arr1,
                            byte[] arr2,
                            int arr2length)
Parameters:
paramName - comments
Returns:
comments
Throws:
XxxxxxException - if ...