java.lang.Object
org.apache.logging.log4j.layout.template.json.util.Uris

public final class Uris extends Object
  • Method Details

    • readUri

      public static String readUri(String spec, Charset charset)
      Reads URI specs of scheme classpath and file.
      Parameters:
      spec - the URI spec, e.g., file:/holy/cow.txt or classpath:/holy/cat.txt
      charset - used Charset for decoding the file
    • readUri

      public static String readUri(URI uri, Charset charset)
      Reads URIs of scheme classpath and file.
      Parameters:
      uri - the URI, e.g., file:/holy/cow.txt or classpath:/holy/cat.txt
      charset - used Charset for decoding the file