Top Fields Constructors Methods
com.mchange.io.impl

public Class LazyReadOnlyMemoryFileImpl

extends Object
implements ReadOnlyMemoryFile
Class Inheritance
All Implemented Interfaces
com.mchange.io.ReadOnlyMemoryFile
Known Direct Subclasses
com.mchange.io.impl.LazyStringMemoryFileImpl
Imports
java.io.*, com.mchange.io.*

Field Summary

Modifier and TypeField and Description
pack-priv byte[]
pack-priv File
pack-priv int
pack-priv long

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public synchronized byte[]
getBytes()

Implements com.mchange.io.ReadOnlyMemoryFile.getBytes.

returns the contents of the file as a byte[]

public File
getFile()

Implements com.mchange.io.ReadOnlyMemoryFile.getFile.

returns the File object this MemoryFile is bound to

pack-priv void
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bytesback to summary
pack-priv byte[] bytes
fileback to summary
pack-priv File file
last_lenback to summary
pack-priv int last_len
last_modback to summary
pack-priv long last_mod

Constructor Detail

LazyReadOnlyMemoryFileImplback to summary
public LazyReadOnlyMemoryFileImpl(File file)
LazyReadOnlyMemoryFileImplback to summary
public LazyReadOnlyMemoryFileImpl(String fname)

Method Detail

getBytesback to summary
public synchronized byte[] getBytes() throws IOException

Implements com.mchange.io.ReadOnlyMemoryFile.getBytes.

Doc from com.mchange.io.ReadOnlyMemoryFile.getBytes.

returns the contents of the file as a byte[]

getFileback to summary
public File getFile()

Implements com.mchange.io.ReadOnlyMemoryFile.getFile.

Doc from com.mchange.io.ReadOnlyMemoryFile.getFile.

returns the File object this MemoryFile is bound to

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