Top Fields Constructors Methods
com.mchange.io.impl

public Class LazyStringMemoryFileImpl

extends LazyReadOnlyMemoryFileImpl
implements StringMemoryFile
Class Inheritance
All Implemented Interfaces
com.mchange.io.StringMemoryFile, com.mchange.io.ReadOnlyMemoryFile
Imports
java.io.*, com.mchange.io.*

Field Summary

Modifier and TypeField and Description
private static final String
pack-priv String
pack-priv String
Inherited from com.mchange.io.impl.LazyReadOnlyMemoryFileImpl:
bytesfilelast_lenlast_mod

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public synchronized String
asString(String enc)

Implements com.mchange.io.StringMemoryFile.asString.

Converts the contents of the file to which this object is bound to a String using the specified character encoding.

public String
asString()

Implements com.mchange.io.StringMemoryFile.asString.

Converts the contents of the file to which this object is bound to a String using the default character encoding.

pack-priv void
Inherited from com.mchange.io.impl.LazyReadOnlyMemoryFileImpl:
getBytesgetFileupdate

Field Detail

DEFAULT_ENCODINGback to summary
private static final String DEFAULT_ENCODING
encodingback to summary
pack-priv String encoding
stringback to summary
pack-priv String string

Constructor Detail

LazyStringMemoryFileImplback to summary
public LazyStringMemoryFileImpl(File file)
LazyStringMemoryFileImplback to summary
public LazyStringMemoryFileImpl(String fname)

Method Detail

asStringback to summary
public synchronized String asString(String enc) throws IOException, UnsupportedEncodingException

Implements com.mchange.io.StringMemoryFile.asString.

Doc from com.mchange.io.StringMemoryFile.asString.

Converts the contents of the file to which this object is bound to a String using the specified character encoding.

asStringback to summary
public String asString() throws IOException

Implements com.mchange.io.StringMemoryFile.asString.

Doc from com.mchange.io.StringMemoryFile.asString.

Converts the contents of the file to which this object is bound to a String using the default character encoding.

refreshBytesback to summary
pack-priv void refreshBytes() throws IOException

Overrides com.mchange.io.impl.LazyReadOnlyMemoryFileImpl.refreshBytes.