public interface StringMemoryFile extends ReadOnlyMemoryFile
Modifier and Type | Method and 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, getFile
java.lang.String asString() throws java.io.IOException
java.io.IOException
java.lang.String asString(java.lang.String enc) throws java.io.IOException, java.io.UnsupportedEncodingException
java.io.IOException
java.io.UnsupportedEncodingException