com.mchange.io
Interface ReadOnlyMemoryFile

All Known Subinterfaces:
StringMemoryFile
All Known Implementing Classes:
LazyReadOnlyMemoryFileImpl, LazyStringMemoryFileImpl

public interface ReadOnlyMemoryFile

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


Method Summary
 byte[] getBytes()
          returns the contents of the file as a byte[]
 File getFile()
          returns the File object this MemoryFile is bound to
 

Method Detail

getFile

File getFile()
             throws IOException
returns the File object this MemoryFile is bound to

Throws:
IOException

getBytes

byte[] getBytes()
                throws IOException
returns the contents of the file as a byte[]

Throws:
IOException