public class LazyStringMemoryFileImpl extends LazyReadOnlyMemoryFileImpl implements StringMemoryFile
Constructor and Description |
---|
LazyStringMemoryFileImpl(File file) |
LazyStringMemoryFileImpl(String fname) |
Modifier and Type | Method and Description |
---|---|
String |
asString()
Converts the contents of the file to which this object is bound
to a String using the default character encoding.
|
String |
asString(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(File file)
public LazyStringMemoryFileImpl(String fname)
public String asString(String enc) throws IOException, UnsupportedEncodingException
StringMemoryFile
asString
in interface StringMemoryFile
IOException
UnsupportedEncodingException
public String asString() throws IOException
StringMemoryFile
asString
in interface StringMemoryFile
IOException