Class LazyStringMemoryFileImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String asString()
      Converts the contents of the file to which this object is bound to a String using the default character encoding.
      java.lang.String asString​(java.lang.String enc)
      Converts the contents of the file to which this object is bound to a String using the specified character encoding.
      • Methods inherited from class java.lang.Object

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

      • LazyStringMemoryFileImpl

        public LazyStringMemoryFileImpl​(java.io.File file)
      • LazyStringMemoryFileImpl

        public LazyStringMemoryFileImpl​(java.lang.String fname)
    • Method Detail

      • asString

        public java.lang.String asString​(java.lang.String enc)
                                  throws java.io.IOException,
                                         java.io.UnsupportedEncodingException
        Description copied from interface: StringMemoryFile
        Converts the contents of the file to which this object is bound to a String using the specified character encoding.
        Specified by:
        asString in interface StringMemoryFile
        Throws:
        java.io.IOException
        java.io.UnsupportedEncodingException
      • asString

        public java.lang.String asString()
                                  throws java.io.IOException
        Description copied from interface: StringMemoryFile
        Converts the contents of the file to which this object is bound to a String using the default character encoding.
        Specified by:
        asString in interface StringMemoryFile
        Throws:
        java.io.IOException