Interface Location
- All Known Implementing Classes:
FileLocation
,URLLocation
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
-