Package com.bc.zarr.storage
Class ZipStore
- java.lang.Object
-
- com.bc.zarr.storage.ZipStore
-
- All Implemented Interfaces:
Store,Closeable,AutoCloseable
public class ZipStore extends Object implements Store
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddelete(String key)TreeSet<String>getArrayKeys()TreeSet<String>getGroupKeys()InputStreamgetInputStream(String key)TreeSet<String>getKeysEndingWith(String suffix)OutputStreamgetOutputStream(String key)Stream<String>getRelativeLeafKeys(String key)
-
-
-
Constructor Detail
-
ZipStore
public ZipStore(Path zipFilePath) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getInputStream
public InputStream getInputStream(String key) throws IOException
- Specified by:
getInputStreamin interfaceStore- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream(String key)
- Specified by:
getOutputStreamin interfaceStore
-
delete
public void delete(String key) throws IOException
- Specified by:
deletein interfaceStore- Throws:
IOException
-
getArrayKeys
public TreeSet<String> getArrayKeys() throws IOException
- Specified by:
getArrayKeysin interfaceStore- Throws:
IOException
-
getGroupKeys
public TreeSet<String> getGroupKeys() throws IOException
- Specified by:
getGroupKeysin interfaceStore- Throws:
IOException
-
getKeysEndingWith
public TreeSet<String> getKeysEndingWith(String suffix) throws IOException
- Specified by:
getKeysEndingWithin interfaceStore- Throws:
IOException
-
getRelativeLeafKeys
public Stream<String> getRelativeLeafKeys(String key) throws IOException
- Specified by:
getRelativeLeafKeysin interfaceStore- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceStore- Throws:
IOException
-
-