Constructor and Description |
---|
InMemoryInputFile(byte[] contents) |
InMemoryInputFile(java.lang.String location,
byte[] contents) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists()
Checks whether the file exists.
|
long |
getLength()
Returns the total length of the file, in bytes
|
java.lang.String |
location()
The fully-qualified location of the input file as a String.
|
SeekableInputStream |
newStream()
Opens a new
SeekableInputStream for the underlying data file |
public InMemoryInputFile(byte[] contents)
public InMemoryInputFile(java.lang.String location, byte[] contents)
public long getLength()
InputFile
public SeekableInputStream newStream()
InputFile
SeekableInputStream
for the underlying data filepublic java.lang.String location()
InputFile