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, getFileclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBytes, getFilepublic LazyStringMemoryFileImpl(File file)
public LazyStringMemoryFileImpl(String fname)
public String asString(String enc) throws IOException, UnsupportedEncodingException
StringMemoryFileasString in interface StringMemoryFileIOExceptionUnsupportedEncodingExceptionpublic String asString() throws IOException
StringMemoryFileasString in interface StringMemoryFileIOException