Class StringOps


  • public class StringOps
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] convertFromHex​(java.lang.String hexStr)  
      static boolean isASCII​(java.lang.String str)  
      static byte[] toByteArray​(java.lang.String s)
      Turns a String into a byte array.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • convertFromHex

        public static byte[] convertFromHex​(java.lang.String hexStr)
      • isASCII

        public static boolean isASCII​(java.lang.String str)
      • toByteArray

        public static byte[] toByteArray​(java.lang.String s)
        Turns a String into a byte array. This method makes many, MANY assumptions on the nature of the data. Not all of which are valid.
        Parameters:
        s - the string to be written