Class StringResource

  • All Implemented Interfaces:
    Resource

    public class StringResource
    extends java.lang.Object
    implements Resource
    • Constructor Summary

      Constructors 
      Constructor Description
      StringResource​(java.lang.String s)  
      StringResource​(java.lang.String string, java.nio.charset.Charset charset)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream getInputStream()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringResource

        public StringResource​(java.lang.String s)
      • StringResource

        public StringResource​(java.lang.String string,
                              java.nio.charset.Charset charset)
    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()
        Specified by:
        getInputStream in interface Resource