public class URLLocation extends FileLocation
| Modifier and Type | Field and Description |
|---|---|
private boolean |
tempFileDeleteOnExit |
private java.lang.String |
tempFilePrefix |
private java.lang.String |
tempFileSuffix |
private java.net.URL |
url |
| Constructor and Description |
|---|
URLLocation(java.net.URL url,
java.lang.String specification,
java.lang.String tempFilePrefix,
java.lang.String tempFileSuffix,
boolean tempFileDeleteOnExit) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initFile()
initialize file.
|
close, getFile, getInputStream, getSpecification, open, read, read, setFile, unsafeGetFileprivate final java.net.URL url
private final java.lang.String tempFilePrefix
private final java.lang.String tempFileSuffix
private final boolean tempFileDeleteOnExit
public URLLocation(java.net.URL url,
java.lang.String specification,
java.lang.String tempFilePrefix,
java.lang.String tempFileSuffix,
boolean tempFileDeleteOnExit)
url - The URL.specification - The spec.tempFilePrefix - the prefix.tempFileSuffix - The suffix.tempFileDeleteOnExit - delete on exit.protected void initFile()
throws java.io.IOException
initFile in class FileLocationjava.io.IOException - in case error.