Top Description Methods
com.mchange.io

public Interface ReadOnlyMemoryFile

Known Direct Subinterfaces
com.mchange.io.StringMemoryFile
Known Direct Implementers
com.mchange.io.impl.LazyReadOnlyMemoryFileImpl
Imports
java.io.*

A convenience interface, for when one wants to work with an entire file in memory as a byte[].

Method Summary

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

returns the contents of the file as a byte[]

public File
getFile()

returns the File object this MemoryFile is bound to

Method Detail

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

returns the contents of the file as a byte[]

getFileback to summary
public File getFile() throws IOException

returns the File object this MemoryFile is bound to