Package ucar.unidata.io.spi
Interface RandomAccessFileProvider
-
- All Known Implementing Classes:
HTTPRandomAccessFile.Provider,InMemoryRandomAccessFile.Provider
public interface RandomAccessFileProviderA Service Provider of RandomAccessFile.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RandomAccessFileacquire(String location)Acquire a file for a location from a cache, if availabledefault RandomAccessFileacquire(String location, int bufferSize)Acquire a file for a location, with the given buffer size, from a cache, if availablebooleanisOwnerOf(String location)Determine if this Provider owns this location.RandomAccessFileopen(String location)Open a location that this Provider is the owner of.default RandomAccessFileopen(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
-
-