Package io.deephaven.fishconfig.kv
Class PropertyInputStreamHelper
java.lang.Object
io.deephaven.fishconfig.kv.PropertyInputStreamHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringTries to do a partial sanitation of a generic filename inputPropertyInputStreamLoader.openConfiguration(String)by replacing periods with dashes, and forward slashes and backslashes with an underscore; to make the part valid with respect toKeyPath.isValidPart(String).
-
Constructor Details
-
PropertyInputStreamHelper
public PropertyInputStreamHelper()
-
-
Method Details
-
sanitize
Tries to do a partial sanitation of a generic filename inputPropertyInputStreamLoader.openConfiguration(String)by replacing periods with dashes, and forward slashes and backslashes with an underscore; to make the part valid with respect toKeyPath.isValidPart(String).- Parameters:
filename- the filename- Returns:
- the KV path safe filename
- Throws:
IllegalArgumentException- ifKeyPath.isValidPart(sanitized)is false
-