org.eclipse.core.internal.utils
Class Convert

java.lang.Object
  extended by org.eclipse.core.internal.utils.Convert

public class Convert
extends java.lang.Object


Constructor Summary
Convert()
           
 
Method Summary
static long bytesToLong(byte[] value)
          Performs conversion of a byte array to a long representation.
static java.lang.String fromUTF8(byte[] b)
          Converts the string argument to a byte array.
static byte[] longToBytes(long value)
          Performs conversion of a long value to a byte array representation.
static byte[] toUTF8(java.lang.String s)
          Converts the string argument to a byte array.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Convert

public Convert()
Method Detail

fromUTF8

public static java.lang.String fromUTF8(byte[] b)
Converts the string argument to a byte array.


toUTF8

public static byte[] toUTF8(java.lang.String s)
Converts the string argument to a byte array.


longToBytes

public static byte[] longToBytes(long value)
Performs conversion of a long value to a byte array representation.

See Also:
bytesToLong(byte[])

bytesToLong

public static long bytesToLong(byte[] value)
Performs conversion of a byte array to a long representation.

See Also:
longToBytes(long)