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()
ReadOnlyMemoryFilegetFile in interface ReadOnlyMemoryFilepublic byte[] getBytes()
throws java.io.IOException
ReadOnlyMemoryFilegetBytes in interface ReadOnlyMemoryFilejava.io.IOException