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 booleantempFileDeleteOnExitprivate java.lang.StringtempFilePrefixprivate java.lang.StringtempFileSuffixprivate java.net.URLurl
-
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 voidinitFile()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.IOExceptionDescription copied from class:FileLocationinitialize file.- Overrides:
initFilein classFileLocation- Throws:
java.io.IOException- in case of error
-
-