public class LazyReadOnlyMemoryFileImpl extends java.lang.Object implements ReadOnlyMemoryFile
Constructor and Description |
---|
LazyReadOnlyMemoryFileImpl(java.io.File file) |
LazyReadOnlyMemoryFileImpl(java.lang.String fname) |
Modifier and Type | Method and 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
|
public LazyReadOnlyMemoryFileImpl(java.io.File file)
public LazyReadOnlyMemoryFileImpl(java.lang.String fname)
public java.io.File getFile()
ReadOnlyMemoryFile
getFile
in interface ReadOnlyMemoryFile
public byte[] getBytes() throws java.io.IOException
ReadOnlyMemoryFile
getBytes
in interface ReadOnlyMemoryFile
java.io.IOException