Class PropertyInputStreamHelper

java.lang.Object
io.deephaven.fishconfig.kv.PropertyInputStreamHelper

public class PropertyInputStreamHelper extends Object
  • Constructor Details

    • PropertyInputStreamHelper

      public PropertyInputStreamHelper()
  • Method Details

    • sanitize

      public static String sanitize(@NotNull @NotNull String filename) throws IllegalArgumentException
      Tries to do a partial sanitation of a generic filename input PropertyInputStreamLoader.openConfiguration(String) by replacing periods with dashes, and forward slashes and backslashes with an underscore; to make the part valid with respect to KeyPath.isValidPart(String).
      Parameters:
      filename - the filename
      Returns:
      the KV path safe filename
      Throws:
      IllegalArgumentException - if KeyPath.isValidPart(sanitized) is false