com.mchange.io.impl
Class LazyReadOnlyMemoryFileImpl

java.lang.Object
  extended by com.mchange.io.impl.LazyReadOnlyMemoryFileImpl
All Implemented Interfaces:
ReadOnlyMemoryFile
Direct Known Subclasses:
LazyStringMemoryFileImpl

public class LazyReadOnlyMemoryFileImpl
extends Object
implements ReadOnlyMemoryFile


Constructor Summary
LazyReadOnlyMemoryFileImpl(File file)
           
LazyReadOnlyMemoryFileImpl(String fname)
           
 
Method Summary
 byte[] getBytes()
          returns the contents of the file as a byte[]
 File getFile()
          returns the File object this MemoryFile is bound to
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyReadOnlyMemoryFileImpl

public LazyReadOnlyMemoryFileImpl(File file)

LazyReadOnlyMemoryFileImpl

public LazyReadOnlyMemoryFileImpl(String fname)
Method Detail

getFile

public File getFile()
Description copied from interface: ReadOnlyMemoryFile
returns the File object this MemoryFile is bound to

Specified by:
getFile in interface ReadOnlyMemoryFile

getBytes

public byte[] getBytes()
                throws IOException
Description copied from interface: ReadOnlyMemoryFile
returns the contents of the file as a byte[]

Specified by:
getBytes in interface ReadOnlyMemoryFile
Throws:
IOException