Package com.baremaps.blob
Class BlobStore
- java.lang.Object
-
- com.baremaps.blob.BlobStore
-
- Direct Known Subclasses:
CompositeBlobStore,FileBlobStore,HttpBlobStore,ResourceBlobStore
public abstract class BlobStore extends Object
-
-
Constructor Summary
Constructors Constructor Description BlobStore()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanaccept(URI uri)protected Pathcache(URI uri)abstract voiddelete(URI uri)abstract Pathfetch(URI uri)abstract InputStreamread(URI uri)abstract byte[]readByteArray(URI uri)abstract OutputStreamwrite(URI uri)abstract voidwriteByteArray(URI uri, byte[] bytes)
-
-
-
Method Detail
-
cache
protected Path cache(URI uri) throws IOException
- Throws:
IOException
-
accept
public abstract boolean accept(URI uri)
-
fetch
public abstract Path fetch(URI uri) throws IOException
- Throws:
IOException
-
read
public abstract InputStream read(URI uri) throws IOException
- Throws:
IOException
-
readByteArray
public abstract byte[] readByteArray(URI uri) throws IOException
- Throws:
IOException
-
write
public abstract OutputStream write(URI uri) throws IOException
- Throws:
IOException
-
writeByteArray
public abstract void writeByteArray(URI uri, byte[] bytes) throws IOException
- Throws:
IOException
-
delete
public abstract void delete(URI uri) throws IOException
- Throws:
IOException
-
-