nn.pp.core

## Class Util

- java.lang.Object
- - nn.pp.core.Util

-     public class Util
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Util()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.String` | `binToHex(byte[] bin)`
    `static byte[]` | `getHash(byte[] challenge, byte[]... data)`
    `static java.lang.reflect.ParameterizedType` | `getParameterizedType(java.lang.Object obj, java.lang.Class<?> rawTypeCls)`
    `static java.awt.Dimension` | `getScaledDimension(java.awt.Dimension availRect, java.awt.Dimension targetResolution)`
    `static java.lang.String` | `getURLCompatibleIP(java.lang.String ipAddr)`
    `static java.lang.String` | `getURLCompatibleIP(java.lang.String addr, int port)`
    `static boolean` | `isNoThreads()`
    `static boolean` | `isPureJava()`
    `static void` | `main(java.lang.String[] args)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Util

          public Util()

  - ### Method Detail

    - #### getURLCompatibleIP

          public static java.lang.String getURLCompatibleIP(java.lang.String ipAddr)

    - #### getURLCompatibleIP

          public static java.lang.String getURLCompatibleIP(java.lang.String addr,
                                                            int port)

    - #### binToHex

          public static java.lang.String binToHex(byte[] bin)

    - #### getHash

          public static byte[] getHash(byte[] challenge,
                                       byte[]... data)
                                throws java.security.NoSuchAlgorithmException

      Throws:
        `java.security.NoSuchAlgorithmException`

    - #### getParameterizedType

          public static java.lang.reflect.ParameterizedType getParameterizedType(java.lang.Object obj,
                                                                                 java.lang.Class<?> rawTypeCls)

    - #### main

          public static void main(java.lang.String[] args)
                           throws java.lang.Exception

      Throws:
        `java.lang.Exception`

    - #### getScaledDimension

          public static java.awt.Dimension getScaledDimension(java.awt.Dimension availRect,
                                                              java.awt.Dimension targetResolution)

    - #### isPureJava

          public static boolean isPureJava()

    - #### isNoThreads

          public static boolean isNoThreads()

Copyright © 2025 Raritan Inc. All Rights Reserved.