Class StringResource

    • Constructor Detail

      • StringResource

        public StringResource​(String name,
                              String str)
    • Method Detail

      • read

        public Reader read​(Charset charset)
        Specified by:
        read in interface Resource
        Returns:
        The contents of the resource.
      • getName

        public String getName()
        Specified by:
        getName in interface Resource
        Returns:
        The path of this resource, separated by forward slashes ("/" on all platforms. Never ends with a slash.
      • describeLocation

        public String describeLocation()
        Specified by:
        describeLocation in interface Resource
        Returns:
        A hint that describes the physical location of this resource (like a full path to a file on disk)