ReadOnlyMemoryFile
LazyStringMemoryFileImpl
public class LazyReadOnlyMemoryFileImpl extends java.lang.Object implements ReadOnlyMemoryFile
Constructor | Description |
---|---|
LazyReadOnlyMemoryFileImpl(java.io.File file) |
|
LazyReadOnlyMemoryFileImpl(java.lang.String fname) |
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
|
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