public class InMemoryReadableDataLocation extends java.lang.Object implements ReadableDataLocation
Constructor and Description |
---|
InMemoryReadableDataLocation(byte[] bytes) |
InMemoryReadableDataLocation(byte[] bytes,
java.lang.String name) |
InMemoryReadableDataLocation(java.lang.String uriStr) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes (and removes if appropriate) any resources that are held open
|
InMemoryReadableDataLocation |
copy()
Returns a copy of this ReadableDataLocation.
|
java.io.InputStream |
getInputStream()
This method is guaranteed to return a new InputStream on each method call.
|
java.lang.String |
getName()
If this ReadableDataLocation originated from a file, then this will be the original file name,
regardless of where the stream is actually held.
|
boolean |
isClosed()
Returns whether this ReadableDataLocation is closed or not.
|
public InMemoryReadableDataLocation(byte[] bytes)
public InMemoryReadableDataLocation(byte[] bytes, java.lang.String name)
public InMemoryReadableDataLocation(java.lang.String uriStr)
public java.lang.String getName()
ReadableDataLocation
getName
in interface ReadableDataLocation
public java.io.InputStream getInputStream()
ReadableDataLocation
getInputStream
in interface ReadableDataLocation
public void close()
ReadableDataLocation
close
in interface ReadableDataLocation
public boolean isClosed()
ReadableDataLocation
isClosed
in interface ReadableDataLocation
public InMemoryReadableDataLocation copy()
ReadableDataLocation
copy
in interface ReadableDataLocation