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[]
 java.io.File getFile()
          returns the File object this MemoryFile is bound to
 

Method Detail

getFile

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

Throws:
java.io.IOException

getBytes

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

Throws:
java.io.IOException