Class FileLocation
java.lang.Object
org.apache.maven.shared.io.location.FileLocation
- All Implemented Interfaces:
Location
- Direct Known Subclasses:
ArtifactLocation, URLLocation
-
Constructor Summary
ConstructorsModifierConstructorDescriptionFileLocation(File file, String specification) protectedFileLocation(String specification) -
Method Summary
-
Constructor Details
-
FileLocation
-
FileLocation
- Parameters:
specification- spec.
-
-
Method Details
-
close
-
getFile
- Specified by:
getFilein interfaceLocation- Returns:
File.- Throws:
IOException- in case of an error.
-
unsafeGetFile
-
initFile
-
setFile
-
getSpecification
- Specified by:
getSpecificationin interfaceLocation- Returns:
- spec.
-
open
open 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.
-