Package ej.util

Class DeviceNatives


  • public class DeviceNatives
    extends java.lang.Object
    Not in API.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean getArchitecture​(byte[] buffer, int bufferLength)
      Fills the given buffer with the name of the architecture as a null-terminated string.
      static int getId​(byte[] buffer, int bufferLength)
      Fills the given buffer with the ID of the device.
      static void getVersion​(byte[] buffer)
      Fills the given buffer with the Version of the device as a null-terminated string.
      static void reboot()
      Reboots the device.
      static void shutdown()
      Shutdowns the device.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.