com.mchange.io
Interface StringMemoryFile

All Superinterfaces:
ReadOnlyMemoryFile
All Known Implementing Classes:
LazyStringMemoryFileImpl

public interface StringMemoryFile
extends ReadOnlyMemoryFile


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 interface com.mchange.io.ReadOnlyMemoryFile
getBytes, getFile
 

Method Detail

asString

String asString()
                throws IOException
Converts the contents of the file to which this object is bound to a String using the default character encoding.

Throws:
IOException

asString

String asString(String enc)
                throws IOException,
                       UnsupportedEncodingException
Converts the contents of the file to which this object is bound to a String using the specified character encoding.

Throws:
IOException
UnsupportedEncodingException