Interface Location
- All Known Implementing Classes:
ArtifactLocation
,FileLocation
,URLLocation
public interface Location
The location interface.
-
Method Details
-
getFile
- Returns:
File
.- Throws:
IOException
- in case of an error.
-
open
open the location.- Throws:
IOException
- in case of an error.
-
close
void close()Close the location. -
read
- Parameters:
buffer
- The buffer.- Returns:
- number of read bytes.
- Throws:
IOException
- in case of an error.
-
read
- Parameters:
buffer
- The buffer.- Returns:
- number of read bytes.
- Throws:
IOException
- in case of an error.
-
getInputStream
- Returns:
- the resulting input stream.
- Throws:
IOException
- in case of an error.
-
getSpecification
String getSpecification()- Returns:
- spec.
-