ReadOnlyMemoryFile, StringMemoryFilepublic class LazyStringMemoryFileImpl extends LazyReadOnlyMemoryFileImpl implements StringMemoryFile
| Constructor | Description |
|---|---|
LazyStringMemoryFileImpl(java.io.File file) |
|
LazyStringMemoryFileImpl(java.lang.String fname) |
| 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.
|
getBytes, getFileclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBytes, getFilepublic 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
StringMemoryFileasString in interface StringMemoryFilejava.io.IOExceptionjava.io.UnsupportedEncodingExceptionpublic java.lang.String asString()
throws java.io.IOException
StringMemoryFileasString in interface StringMemoryFilejava.io.IOException