Package burp.api.montoya.utilities
Interface NumberUtils
public interface NumberUtils
This interface gives you access to number string conversion features.
-
Method Summary
Modifier and TypeMethodDescriptionconvertBinary
(String binaryString, int radix) convertBinaryToDecimal
(ByteArray byteArray) convertBinaryToDecimal
(String binaryString) convertBinaryToHex
(ByteArray byteArray) convertBinaryToHex
(String binaryString) convertBinaryToOctal
(ByteArray byteArray) convertBinaryToOctal
(String binaryString) convertDecimal
(String decimalString, int radix) convertDecimalToBinary
(String decimalString) convertDecimalToHex
(String decimalString) convertDecimalToOctal
(String decimalString) convertHex
(String hexString, int radix) convertHexToBinary
(String hexString) convertHexToDecimal
(String hexString) convertHexToOctal
(String hexString) convertOctal
(String octalString, int radix) convertOctalToBinary
(String octalString) convertOctalToDecimal
(String octalString) convertOctalToHex
(String octalString)
-
Method Details
-
convertBinaryToOctal
- Parameters:
binaryString
- the binary string to convert- Returns:
- string containing the octal representation
-
convertBinaryToOctal
- Parameters:
byteArray
- the byte array to convert- Returns:
- string containing the octal representation
-
convertBinaryToDecimal
- Parameters:
binaryString
- the binary string to convert- Returns:
- string containing the decimal representation
-
convertBinaryToDecimal
- Parameters:
byteArray
- the byte array to convert- Returns:
- string containing the decimal representation
-
convertBinaryToHex
- Parameters:
binaryString
- the binary string to convert- Returns:
- string containing the hex representation
-
convertBinaryToHex
- Parameters:
byteArray
- the byte array to convert- Returns:
- string containing the hex representation
-
convertOctalToBinary
- Parameters:
octalString
- the octal string to convert- Returns:
- string containing the binary representation
-
convertOctalToDecimal
- Parameters:
octalString
- the octal string to convert- Returns:
- string containing the decimal representation
-
convertOctalToHex
- Parameters:
octalString
- the octal string to convert- Returns:
- string containing the hex representation
-
convertDecimalToBinary
- Parameters:
decimalString
- the decimal string to convert- Returns:
- string containing the binary representation
-
convertDecimalToOctal
- Parameters:
decimalString
- the decimal string to convert- Returns:
- string containing the octal representation
-
convertDecimalToHex
- Parameters:
decimalString
- the decimal string to convert- Returns:
- string containing the hex representation
-
convertHexToBinary
- Parameters:
hexString
- the hex string to convert- Returns:
- string containing the binary representation
-
convertHexToOctal
- Parameters:
hexString
- the hex string to convert- Returns:
- string containing the octal representation
-
convertHexToDecimal
- Parameters:
hexString
- the hex string to convert- Returns:
- string containing the decimal representation
-
convertBinary
- Parameters:
binaryString
- the binary string to convertradix
- the radix to convert to- Returns:
- string containing the representation in the specified radix
-
convertOctal
- Parameters:
octalString
- the octal string to convertradix
- the radix to convert to- Returns:
- string containing the representation in the specified radix
-
convertDecimal
- Parameters:
decimalString
- the decimal string to convertradix
- the radix to convert to- Returns:
- string containing the representation in the specified radix
-
convertHex
- Parameters:
hexString
- the hex string to convertradix
- the radix to convert to- Returns:
- string containing the representation in the specified radix
-