public class MoleculeArchiveFSSource extends java.lang.Object implements MoleculeArchiveSource
INDEXES_FILE_NAME, METADATA_SUBDIRECTORY_NAME, MOLECULES_SUBDIRECTORY_NAME, PROPERTIES_FILE_NAME, ROVER_FILE_EXTENSION
MOLECULE_ARCHIVE_ENDING, MOLECULE_ARCHIVE_STORE_ENDING, N5_DATASET_DIRECTORY_ENDING
Constructor and Description |
---|
MoleculeArchiveFSSource(java.io.File file)
Use to read from an archive or create one.
|
MoleculeArchiveFSSource(java.lang.String path)
Use to read from an archive or create one.
|
Modifier and Type | Method and Description |
---|---|
boolean |
exists(java.lang.String pathName)
Test whether a group or dataset exists at a given path.
|
java.lang.String |
getArchiveType() |
java.lang.String |
getFileExtension() |
java.io.InputStream |
getIndexesInputStream() |
java.io.OutputStream |
getIndexesOutputStream() |
java.io.InputStream |
getInputStream() |
java.io.InputStream |
getMetadataInputStream(java.lang.String metaUID) |
java.io.OutputStream |
getMetadataOutputStream(java.lang.String metaUID) |
java.util.List<java.lang.String> |
getMetadataUIDs() |
java.io.InputStream |
getMoleculeInputStream(java.lang.String UID) |
java.io.OutputStream |
getMoleculeOutputStream(java.lang.String UID) |
java.util.List<java.lang.String> |
getMoleculeUIDs() |
java.lang.String |
getName() |
java.io.OutputStream |
getOutputStream() |
java.lang.String |
getPath() |
java.io.InputStream |
getPropertiesInputStream() |
java.io.OutputStream |
getPropertiesOutputStream() |
java.io.InputStream |
getRoverInputStream() |
java.io.OutputStream |
getRoverOutputStream() |
java.lang.String |
getURI() |
void |
initializeLocation() |
boolean |
isReachable() |
boolean |
isVirtual() |
java.lang.String[] |
list(java.lang.String pathName)
List all groups (including datasets) in a group.
|
java.lang.String[] |
listDirectories(java.lang.String pathName)
List all groups (including datasets) in a group.
|
java.lang.String[] |
listFiles(java.lang.String pathName)
List all groups (including datasets) in a group.
|
void |
removeMetadata(java.lang.String metaUID) |
void |
removeMolecule(java.lang.String UID) |
void |
setPath(java.lang.String path) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, deepList, deepList, deepList, deepList, deepList, deepListHelper, getGroupSeparator, groupPath
public MoleculeArchiveFSSource(java.io.File file)
file
- the file or directory.public MoleculeArchiveFSSource(java.lang.String path)
path
- the full file path.public void initializeLocation()
initializeLocation
in interface MoleculeArchiveSource
public void setPath(java.lang.String path)
setPath
in interface MoleculeArchiveSource
public java.lang.String getPath()
getPath
in interface MoleculeArchiveSource
public java.lang.String getName()
getName
in interface MoleculeArchiveSource
public boolean isVirtual()
isVirtual
in interface MoleculeArchiveSource
public boolean isReachable()
isReachable
in interface MoleculeArchiveSource
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface MoleculeArchiveSource
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface MoleculeArchiveSource
java.io.IOException
public java.io.InputStream getRoverInputStream() throws java.io.IOException
getRoverInputStream
in interface MoleculeArchiveSource
java.io.IOException
public java.io.OutputStream getRoverOutputStream() throws java.io.IOException
getRoverOutputStream
in interface MoleculeArchiveSource
java.io.IOException
public java.lang.String getArchiveType() throws java.io.IOException
getArchiveType
in interface MoleculeArchiveSource
java.io.IOException
public java.io.InputStream getPropertiesInputStream() throws java.io.IOException
getPropertiesInputStream
in interface MoleculeArchiveSource
java.io.IOException
public java.io.OutputStream getPropertiesOutputStream() throws java.io.IOException
getPropertiesOutputStream
in interface MoleculeArchiveSource
java.io.IOException
public java.io.InputStream getIndexesInputStream() throws java.io.IOException
getIndexesInputStream
in interface MoleculeArchiveSource
java.io.IOException
public java.io.OutputStream getIndexesOutputStream() throws java.io.IOException
getIndexesOutputStream
in interface MoleculeArchiveSource
java.io.IOException
public java.io.InputStream getMoleculeInputStream(java.lang.String UID) throws java.io.IOException
getMoleculeInputStream
in interface MoleculeArchiveSource
java.io.IOException
public java.io.OutputStream getMoleculeOutputStream(java.lang.String UID) throws java.io.IOException
getMoleculeOutputStream
in interface MoleculeArchiveSource
java.io.IOException
public void removeMolecule(java.lang.String UID)
removeMolecule
in interface MoleculeArchiveSource
public java.io.InputStream getMetadataInputStream(java.lang.String metaUID) throws java.io.IOException
getMetadataInputStream
in interface MoleculeArchiveSource
java.io.IOException
public java.io.OutputStream getMetadataOutputStream(java.lang.String metaUID) throws java.io.IOException
getMetadataOutputStream
in interface MoleculeArchiveSource
java.io.IOException
public void removeMetadata(java.lang.String metaUID)
removeMetadata
in interface MoleculeArchiveSource
public java.util.List<java.lang.String> getMoleculeUIDs()
getMoleculeUIDs
in interface MoleculeArchiveSource
public java.util.List<java.lang.String> getMetadataUIDs()
getMetadataUIDs
in interface MoleculeArchiveSource
public java.lang.String getFileExtension()
public java.lang.String getURI()
getURI
in interface MoleculeArchiveStorage
public boolean exists(java.lang.String pathName) throws java.io.IOException
MoleculeArchiveStorage
exists
in interface MoleculeArchiveStorage
pathName
- group pathjava.io.IOException
- an exception is thrown if the source is not accessiblepublic java.lang.String[] list(java.lang.String pathName) throws java.io.IOException
MoleculeArchiveStorage
list
in interface MoleculeArchiveStorage
pathName
- group pathjava.io.IOException
- an exception is thrown if pathName is not a valid grouppublic java.lang.String[] listDirectories(java.lang.String pathName) throws java.io.IOException
MoleculeArchiveStorage
listDirectories
in interface MoleculeArchiveStorage
pathName
- group pathjava.io.IOException
- an exception is thrown if pathName is not a valid grouppublic java.lang.String[] listFiles(java.lang.String pathName) throws java.io.IOException
MoleculeArchiveStorage
listFiles
in interface MoleculeArchiveStorage
pathName
- group pathjava.io.IOException
- an exception is thrown if pathName is not a valid group