Initializing help system before first use

XPRSutils

  • java.lang.Object
    • com.dashoptimization.XPRSutils

  • public abstract class XPRSutils
    extends java.lang.Object
    Container for some useful XPRS utility functions
    • Nested Class Summary

      Modifier and Type Class Description
      static interface  XPRSutils.AddNames  
    • Constructor Summary

      Constructor Description
      XPRSutils()  
    • Method Summary

      Modifier and Type Method Description
      static int addNames​(java.lang.String[] names, int first, int last, XPRSutils.AddNames add)  
      static byte[] copyToPackedStringArray​(java.lang.String[] strs, byte[] buf, int numStrs)  
      static byte[] copyToUnpackedStringArray​(java.lang.String[] strs, byte[] buf, int numStrs, int strLen)  
      static int countByteArrayReqd​(java.lang.String[] str)
      Given a string array, count how large a byte array will be required to contain it
      static java.lang.String[] decodeUnpackedStringArray​(byte[] bytes, int len, int count)
      Decodes a packed string array into an array of String objects
      static void decodeUnpackedStringArray​(java.lang.String[] strs, byte[] bytes, int len, int count)
      Decodes a packed string array into the specified String array
      static java.lang.String fromByteArray​(byte[] str)
      Converts NUL terminated byte array to a string.
      static byte[] toByteArray​(char[] chrs)
      Converts a character array into a byte array
      static byte[] toByteArray​(StringHolder str, byte[] b)
      Converts a string holder into a byte array
      static byte[] toByteArray​(StringHolder str, int minlen)
      Converts a string holder into a byte array
      static byte[] toByteArray​(java.lang.String str)
      Converts a string into a NUL terminated byte array
      • Methods inherited from class java.lang.Object

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

      • XPRSutils

        public XPRSutils()
    • Method Detail

      • toByteArray

        public static byte[] toByteArray​(char[] chrs)
        Converts a character array into a byte array
      • toByteArray

        public static byte[] toByteArray​(StringHolder str,
                                         int minlen)
        Converts a string holder into a byte array
      • toByteArray

        public static byte[] toByteArray​(StringHolder str,
                                         byte[] b)
        Converts a string holder into a byte array
      • toByteArray

        public static byte[] toByteArray​(java.lang.String str)
        Converts a string into a NUL terminated byte array
      • fromByteArray

        public static java.lang.String fromByteArray​(byte[] str)
        Converts NUL terminated byte array to a string.
      • countByteArrayReqd

        public static int countByteArrayReqd​(java.lang.String[] str)
        Given a string array, count how large a byte array will be required to contain it
      • copyToPackedStringArray

        public static byte[] copyToPackedStringArray​(java.lang.String[] strs,
                                                     byte[] buf,
                                                     int numStrs)
      • copyToUnpackedStringArray

        public static byte[] copyToUnpackedStringArray​(java.lang.String[] strs,
                                                       byte[] buf,
                                                       int numStrs,
                                                       int strLen)
      • decodeUnpackedStringArray

        public static void decodeUnpackedStringArray​(java.lang.String[] strs,
                                                     byte[] bytes,
                                                     int len,
                                                     int count)
        Decodes a packed string array into the specified String array
      • decodeUnpackedStringArray

        public static java.lang.String[] decodeUnpackedStringArray​(byte[] bytes,
                                                                   int len,
                                                                   int count)
        Decodes a packed string array into an array of String objects
      • addNames

        public static int addNames​(java.lang.String[] names,
                                   int first,
                                   int last,
                                   XPRSutils.AddNames add)

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.