Package ucar.unidata.io.spi
Interface RandomAccessFileProvider
-
- All Known Implementing Classes:
HTTPRandomAccessFile.Provider
,InMemoryRandomAccessFile.Provider
,RandomAccessDirectory.Provider
,S3RandomAccessFile.Provider
public interface RandomAccessFileProvider
A Service Provider of RandomAccessFile.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RandomAccessFile
acquire(String location)
Acquire a file for a location from a cache, if availabledefault RandomAccessFile
acquire(String location, int bufferSize)
Acquire a file for a location, with the given buffer size, from a cache, if availableboolean
isOwnerOf(String location)
Determine if this Provider owns this location.RandomAccessFile
open(String location)
Open a location that this Provider is the owner of.default RandomAccessFile
open(String location, int bufferSize)
Open a location that this Provider is the owner of, with the given buffer size
-
-
-
Method Detail
-
isOwnerOf
boolean isOwnerOf(String location)
Determine if this Provider owns this location.
-
open
RandomAccessFile open(String location) throws IOException
Open a location that this Provider is the owner of.- Throws:
IOException
-
open
default RandomAccessFile open(String location, int bufferSize) throws IOException
Open a location that this Provider is the owner of, with the given buffer size- Throws:
IOException
-
acquire
default RandomAccessFile acquire(String location) throws IOException
Acquire a file for a location from a cache, if available- Throws:
IOException
-
acquire
default RandomAccessFile acquire(String location, int bufferSize) throws IOException
Acquire a file for a location, with the given buffer size, from a cache, if available- Throws:
IOException
-
-