Class URLLocation
- java.lang.Object
-
- org.apache.maven.plugins.assembly.io.FileLocation
-
- org.apache.maven.plugins.assembly.io.URLLocation
-
- All Implemented Interfaces:
Location
class URLLocation extends FileLocation
The URL Location, storing the URL content to a temporary local file.
-
-
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.plugins.assembly.io.FileLocation
close, getFile, getInputStream, getSpecification, open, read, read, setFile, unsafeGetFile
-
-
-
-
Constructor Detail
-
URLLocation
URLLocation(java.net.URL url, java.lang.String specification, java.lang.String tempFilePrefix, java.lang.String tempFileSuffix, boolean tempFileDeleteOnExit)
- Parameters:
url
- the URLspecification
- the spectempFilePrefix
- the prefixtempFileSuffix
- the suffixtempFileDeleteOnExit
- delete on exit
-
-
Method Detail
-
initFile
protected void initFile() throws java.io.IOException
Description copied from class:FileLocation
initialize file.- Overrides:
initFile
in classFileLocation
- Throws:
java.io.IOException
- in case of error
-
-