public class LazyStringMemoryFileImpl extends LazyReadOnlyMemoryFileImpl implements StringMemoryFile
Constructor and Description |
---|
LazyStringMemoryFileImpl(java.io.File file) |
LazyStringMemoryFileImpl(java.lang.String fname) |
Modifier and Type | Method and 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.
|
getBytes, getFile
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBytes, getFile
public LazyStringMemoryFileImpl(java.io.File file)
public LazyStringMemoryFileImpl(java.lang.String fname)
public java.lang.String asString(java.lang.String enc) throws java.io.IOException, java.io.UnsupportedEncodingException
StringMemoryFile
asString
in interface StringMemoryFile
java.io.IOException
java.io.UnsupportedEncodingException
public java.lang.String asString() throws java.io.IOException
StringMemoryFile
asString
in interface StringMemoryFile
java.io.IOException