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

Quick Search    Search Deep

org.bluej.core
Class Utils  view Utils download Utils.java

java.lang.Object
  extended byorg.bluej.core.Utils

public class Utils
extends java.lang.Object


Constructor Summary
Utils()
           
 
Method Summary
static long bytesToLong(byte[] buf, int bytes, int pos)
           
static java.lang.String bytesToString(byte[] bytes, int start, int len, java.lang.String sep)
           
static java.lang.String bytesToString(byte[] bytes, java.lang.String sep)
           
static byte[] dupBytes(byte[] buf, int bytes, int pos)
           
static int layoutBytes(byte[] val, byte[] buf, int pos)
           
static int layoutBytes(int noBytes, long val, byte[] buf, int pos)
           
static int layoutDataElement(DataElement elem, byte[] buf, int pos)
           
static byte[] longToBytes(long val, int noBytes)
           
static long signExtend(long val, int bytes)
           
static byte[] stringToBytes(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

bytesToString

public static java.lang.String bytesToString(byte[] bytes,
                                             java.lang.String sep)

bytesToString

public static java.lang.String bytesToString(byte[] bytes,
                                             int start,
                                             int len,
                                             java.lang.String sep)

stringToBytes

public static byte[] stringToBytes(java.lang.String str)

signExtend

public static long signExtend(long val,
                              int bytes)

bytesToLong

public static long bytesToLong(byte[] buf,
                               int bytes,
                               int pos)

dupBytes

public static byte[] dupBytes(byte[] buf,
                              int bytes,
                              int pos)

longToBytes

public static byte[] longToBytes(long val,
                                 int noBytes)

layoutBytes

public static int layoutBytes(byte[] val,
                              byte[] buf,
                              int pos)

layoutBytes

public static int layoutBytes(int noBytes,
                              long val,
                              byte[] buf,
                              int pos)

layoutDataElement

public static int layoutDataElement(DataElement elem,
                                    byte[] buf,
                                    int pos)