Package 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 java.lang.Object implements ReadOnlyMemoryFile
-
-
Constructor Summary
Constructors Constructor Description LazyReadOnlyMemoryFileImpl(java.io.File file)
LazyReadOnlyMemoryFileImpl(java.lang.String fname)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
public java.io.File getFile()
Description copied from interface:ReadOnlyMemoryFile
returns the File object this MemoryFile is bound to- Specified by:
getFile
in interfaceReadOnlyMemoryFile
-
getBytes
public byte[] getBytes() throws java.io.IOException
Description copied from interface:ReadOnlyMemoryFile
returns the contents of the file as a byte[]- Specified by:
getBytes
in interfaceReadOnlyMemoryFile
- Throws:
java.io.IOException
-
-