public class ReadableDataLocationTmp extends java.lang.Object implements ReadableDataLocation
Constructor and Description |
---|
ReadableDataLocationTmp(java.io.File f) |
ReadableDataLocationTmp(java.io.InputStream is) |
ReadableDataLocationTmp(java.lang.String uriStr) |
ReadableDataLocationTmp(java.net.URI uri) |
ReadableDataLocationTmp(java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes (and removes if appropriate) any resources that are held open
|
ReadableDataLocationTmp |
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.
|
java.lang.String |
toString() |
public ReadableDataLocationTmp(java.lang.String uriStr)
public ReadableDataLocationTmp(java.io.File f)
public ReadableDataLocationTmp(java.net.URL url)
public ReadableDataLocationTmp(java.net.URI uri)
public ReadableDataLocationTmp(java.io.InputStream is)
public java.io.InputStream getInputStream()
ReadableDataLocation
getInputStream
in interface ReadableDataLocation
public java.lang.String getName()
ReadableDataLocation
getName
in interface ReadableDataLocation
public void close()
ReadableDataLocation
close
in interface ReadableDataLocation
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isClosed()
ReadableDataLocation
isClosed
in interface ReadableDataLocation
public ReadableDataLocationTmp copy()
ReadableDataLocation
copy
in interface ReadableDataLocation