Package ej.util
Class DeviceNatives
- java.lang.Object
-
- ej.util.DeviceNatives
-
public class DeviceNatives extends java.lang.ObjectNot in API.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleangetArchitecture(byte[] buffer, int bufferLength)Fills the given buffer with the name of the architecture as a null-terminated string.static intgetId(byte[] buffer, int bufferLength)Fills the given buffer with the ID of the device.static voidgetVersion(byte[] buffer)Fills the given buffer with the Version of the device as a null-terminated string.static voidreboot()Reboots the device.static voidshutdown()Shutdowns the device.
-
-
-
Method Detail
-
getArchitecture
public static boolean getArchitecture(byte[] buffer, int bufferLength)Fills the given buffer with the name of the architecture as a null-terminated string.- Parameters:
buffer- the buffer to fill with the name of the architecture.bufferLength- the size of the buffer.- Returns:
- true on success or false on error.
-
getId
public static int getId(byte[] buffer, int bufferLength)Fills the given buffer with the ID of the device.- Parameters:
buffer- the buffer to fill with the ID.bufferLength- the size of the buffer.- Returns:
- the number of bytes filled or 0 on error.
-
getVersion
public static void getVersion(byte[] buffer)
Fills the given buffer with the Version of the device as a null-terminated string.- Parameters:
buffer- the buffer to fill with the Version.
-
reboot
public static void reboot()
Reboots the device.
-
shutdown
public static void shutdown()
Shutdowns the device.
-
-