com.mchange.io.impl
Class LazyStringMemoryFileImpl
java.lang.Object
com.mchange.io.impl.LazyReadOnlyMemoryFileImpl
com.mchange.io.impl.LazyStringMemoryFileImpl
- All Implemented Interfaces:
- ReadOnlyMemoryFile, StringMemoryFile
public class LazyStringMemoryFileImpl
- extends LazyReadOnlyMemoryFileImpl
- implements StringMemoryFile
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyStringMemoryFileImpl
public LazyStringMemoryFileImpl(File file)
LazyStringMemoryFileImpl
public LazyStringMemoryFileImpl(String fname)
asString
public String asString(String enc)
throws IOException,
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:
IOException
UnsupportedEncodingException
asString
public String asString()
throws 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:
IOException