Class ParsingUtils
java.lang.Object
org.apache.commons.compress.utils.ParsingUtils
Utility methods for parsing data and converting it to other formats.
- Since:
 - 1.26.0
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic intparseIntValue(String value) Parses the provided string value to an Integer, assuming a base-10 radixstatic intparseIntValue(String value, int radix) Parse the provided string value to an Integer with a provided radixstatic longparseLongValue(String value) Parses the provided string value to a Long, assuming a base-10 radixstatic longparseLongValue(String value, int radix) Parses the provided string value to a Long with a provided radix 
- 
Method Details
- 
parseIntValue
Parses the provided string value to an Integer, assuming a base-10 radix- Parameters:
 value- string value to parse- Returns:
 - parsed value as an int
 - Throws:
 IOException- when the value cannot be parsed
 - 
parseIntValue
Parse the provided string value to an Integer with a provided radix- Parameters:
 value- string value to parseradix- radix value to use for parsing- Returns:
 - parsed value as an int
 - Throws:
 IOException- when the value cannot be parsed
 - 
parseLongValue
Parses the provided string value to a Long, assuming a base-10 radix- Parameters:
 value- string value to parse- Returns:
 - parsed value as a long
 - Throws:
 IOException- when the value cannot be parsed
 - 
parseLongValue
Parses the provided string value to a Long with a provided radix- Parameters:
 value- string value to parseradix- radix value to use for parsing- Returns:
 - parsed value as a long
 - Throws:
 IOException- when the value cannot be parsed
 
 -