XPRSutils
- java.lang.Object
-
- com.dashoptimization.XPRSutils
-
public abstract class XPRSutils extends java.lang.ObjectContainer for some useful XPRS utility functions
-
-
Nested Class Summary
Modifier and Type Class Description static interfaceXPRSutils.AddNames
-
Constructor Summary
Constructor Description XPRSutils()
-
Method Summary
Modifier and Type Method Description static intaddNames(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 intcountByteArrayReqd(java.lang.String[] str)Given a string array, count how large a byte array will be required to contain itstatic java.lang.String[]decodeUnpackedStringArray(byte[] bytes, int len, int count)Decodes a packed string array into an array of String objectsstatic voiddecodeUnpackedStringArray(java.lang.String[] strs, byte[] bytes, int len, int count)Decodes a packed string array into the specified String arraystatic java.lang.StringfromByteArray(byte[] str)ConvertsNULterminated byte array to a string.static byte[]toByteArray(char[] chrs)Converts a character array into a byte arraystatic byte[]toByteArray(StringHolder str, byte[] b)Converts a string holder into a byte arraystatic byte[]toByteArray(StringHolder str, int minlen)Converts a string holder into a byte arraystatic byte[]toByteArray(java.lang.String str)Converts a string into aNULterminated byte array
-
-
-
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 aNULterminated byte array
-
fromByteArray
public static java.lang.String fromByteArray(byte[] str)
ConvertsNULterminated 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.
