Class URLLocation
- java.lang.Object
-
- org.apache.maven.shared.io.location.FileLocation
-
- org.apache.maven.shared.io.location.URLLocation
-
- All Implemented Interfaces:
Location
public class URLLocation extends FileLocation
The URL Location.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
tempFileDeleteOnExit
private java.lang.String
tempFilePrefix
private java.lang.String
tempFileSuffix
private java.net.URL
url
-
Constructor Summary
Constructors Constructor Description URLLocation(java.net.URL url, java.lang.String specification, java.lang.String tempFilePrefix, java.lang.String tempFileSuffix, boolean tempFileDeleteOnExit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initFile()
initialize file.-
Methods inherited from class org.apache.maven.shared.io.location.FileLocation
close, getFile, getInputStream, getSpecification, open, read, read, setFile, unsafeGetFile
-
-
-
-
Constructor Detail
-
URLLocation
public URLLocation(java.net.URL url, java.lang.String specification, java.lang.String tempFilePrefix, java.lang.String tempFileSuffix, boolean tempFileDeleteOnExit)
- Parameters:
url
- The URL.specification
- The spec.tempFilePrefix
- the prefix.tempFileSuffix
- The suffix.tempFileDeleteOnExit
- delete on exit.
-
-
Method Detail
-
initFile
protected void initFile() throws java.io.IOException
initialize file.- Overrides:
initFile
in classFileLocation
- Throws:
java.io.IOException
- in case error.
-
-