Class ASCIIUtility


  • final class ASCIIUtility
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ASCIIUtility()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int parseInt​(byte[] b, int start, int end, int radix)
      Convert the bytes within the specified range of the given byte array into a signed integer in the given radix .
      static java.lang.String toString​(byte[] b, int start, int end)
      Convert the bytes within the specified range of the given byte array into a String.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ASCIIUtility

        private ASCIIUtility()
    • Method Detail

      • parseInt

        public static int parseInt​(byte[] b,
                                   int start,
                                   int end,
                                   int radix)
                            throws java.lang.NumberFormatException
        Convert the bytes within the specified range of the given byte array into a signed integer in the given radix . The range extends from start till, but not including end.

        Based on java.lang.Integer.parseInt()

        Throws:
        java.lang.NumberFormatException
      • toString

        public static java.lang.String toString​(byte[] b,
                                                int start,
                                                int end)
        Convert the bytes within the specified range of the given byte array into a String. The range extends from start till, but not including end.