Class FileLocation
java.lang.Object
org.apache.maven.plugins.assembly.io.FileLocation
- All Implemented Interfaces:
Location
- Direct Known Subclasses:
URLLocation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FileChannelprivate Fileprivate final Stringprivate FileInputStream -
Constructor Summary
ConstructorsConstructorDescriptionFileLocation(File file, String specification) FileLocation(String specification) -
Method Summary
-
Field Details
-
file
-
channel
-
specification
-
stream
-
-
Constructor Details
-
FileLocation
-
FileLocation
FileLocation(String specification) - Parameters:
specification- spec
-
-
Method Details
-
close
-
getFile
- Specified by:
getFilein interfaceLocation- Returns:
File- Throws:
IOException- in case of an error
-
unsafeGetFile
-
initFile
initialize file.- Throws:
IOException- in case of error
-
setFile
-
getSpecification
- Specified by:
getSpecificationin interfaceLocation- Returns:
- spec
-
open
Description copied from interface:LocationOpen the location.- Specified by:
openin interfaceLocation- Throws:
IOException- in case of an error
-
read
- Specified by:
readin interfaceLocation- Parameters:
buffer- The buffer- Returns:
- number of read bytes
- Throws:
IOException- in case of an error
-
read
- Specified by:
readin interfaceLocation- Parameters:
buffer- the buffer- Returns:
- number of read bytes
- Throws:
IOException- in case of an error
-
getInputStream
- Specified by:
getInputStreamin interfaceLocation- Returns:
- the resulting input stream.
- Throws:
IOException- in case of an error
-