Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class BitConverter

Hierarchy

java.lang.Object

Package
com.smartdevicelink.util

Constructors

BitConverter()

public BitConverter()

Methods

bytesToHex( byte[] bytes )

public static java.lang.String bytesToHex(byte[] bytes)

Parameters

bytes
byte array that will be converted to hex

bytesToHex( byte[] bytes, int offset, int length )

public static java.lang.String bytesToHex(byte[] bytes,int offset,int length)

Parameters

bytes
byte array that will be converted to hex
offset
int representing the offset to begin conversion at
length
int representing number of bytes in array to convert

hexToBytes( String hexString )

public static byte hexToBytes(String hexString)

Parameters

hexString
the String containing converted hex values

intToByteArray( int value )

public static final byte intToByteArray(int value)

Parameters

value

intFromByteArray( byte[] sizeBuf, int offset )

public static int intFromByteArray(byte[] sizeBuf,int offset)

Parameters

sizeBuf
byte array that will be converted to int
offset

shortToByteArray( short value )

public static final byte shortToByteArray(short value)

Parameters

value

shortFromByteArray( byte[] sizeBuf, int offset )

public static short shortFromByteArray(byte[] sizeBuf,int offset)

Parameters

sizeBuf
byte array that will be converted to short
offset

bytesToHex( byte[] bytes, int end )

Converts the byte array into a string of hex values.

public static java.lang.String bytesToHex(byte[] bytes,int end)

Parameters

bytes
byte array that will be converted to hex
end
EXCLUSIVE so if it it receives 10 it will print 0-9

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section