com.mchange.io.impl
Class LazyReadOnlyMemoryFileImpl
java.lang.Object
com.mchange.io.impl.LazyReadOnlyMemoryFileImpl
- All Implemented Interfaces:
- ReadOnlyMemoryFile
- Direct Known Subclasses:
- LazyStringMemoryFileImpl
public class LazyReadOnlyMemoryFileImpl
- extends Object
- implements ReadOnlyMemoryFile
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 |
LazyReadOnlyMemoryFileImpl
public LazyReadOnlyMemoryFileImpl(File file)
LazyReadOnlyMemoryFileImpl
public LazyReadOnlyMemoryFileImpl(String fname)
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