Class StringBufferResource

  • All Implemented Interfaces:
    Resource

    public class StringBufferResource
    extends java.lang.Object
    implements Resource
    • Constructor Detail

      • StringBufferResource

        public StringBufferResource()
      • StringBufferResource

        public StringBufferResource​(java.lang.String initalValue)
    • Method Detail

      • getWriter

        public java.io.Writer getWriter()
                                 throws java.io.IOException
        Specified by:
        getWriter in interface Resource
        Throws:
        java.io.IOException
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Specified by:
        getInputStream in interface Resource
        Throws:
        java.io.IOException
      • getReader

        public java.io.Reader getReader()
                                 throws java.io.IOException
        Specified by:
        getReader in interface Resource
        Throws:
        java.io.IOException
      • getSize

        public long getSize()
        Specified by:
        getSize in interface Resource
      • getAsString

        public java.lang.String getAsString()
                                     throws java.io.IOException
        Specified by:
        getAsString in interface Resource
        Throws:
        java.io.IOException
      • delete

        public void delete()
        Specified by:
        delete in interface Resource