Package org.apache.tika.util
Class PropsUtil
java.lang.Object
org.apache.tika.util.PropsUtil
Utility class to handle properties. If the value is null,
or if there is a parser error, the defaultMissing value will be returned.
-
Constructor Details
-
PropsUtil
public PropsUtil()
-
-
Method Details
-
getBoolean
Parses v. If there is a problem, this returns defaultMissing.- Parameters:
v
- string to parsedefaultMissing
- value to return if value is null or unparseable- Returns:
- parsed value
-
getInt
Parses v. If there is a problem, this returns defaultMissing.- Parameters:
v
- string to parsedefaultMissing
- value to return if value is null or unparseable- Returns:
- parsed value
-
getLong
Parses v. If there is a problem, this returns defaultMissing.- Parameters:
v
- string to parsedefaultMissing
- value to return if value is null or unparseable- Returns:
- parsed value
-
getString
Parses v. If v is null, this returns defaultMissing.- Parameters:
v
- string to parsedefaultMissing
- value to return if value is null- Returns:
- parsed value
-
getPath
Parses v. If there is a problem, this returns defaultMissing.- Parameters:
v
- string to parsedefaultMissing
- value to return if value is null or unparseable- Returns:
- parsed value
- See Also:
-