Package org.rcsb.strucmotif.io
Interface StructureDataProvider
- All Known Implementing Classes:
StructureDataProviderImpl
public interface StructureDataProvider
Access structure data.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteRenumbered(String structureIdentifier) Drop information on a renumbered structure.getOriginalInputStream(String structureIdentifier) Acquire the input stream of an original structure.voidIf `strucmotif.in-memory-strategy` is active: Initialize caching by reading all structures and keeping them in memory for fast access.readFromInputStream(InputStream inputStream) Read everything from an input stream.readOriginal(String structureIdentifier) Read a selected range from an original structure.readRenumbered(String structureIdentifier) Read a renumbered structure entirely.Read some structure entirely.voidwriteRenumbered(String structureIdentifier, org.rcsb.cif.schema.mm.MmCifFile mmCifFile) Write a renumbered structure.
-
Method Details
-
initializeRenumberedStructureCache
If `strucmotif.in-memory-strategy` is active: Initialize caching by reading all structures and keeping them in memory for fast access.- Throws:
IOException- reading of structure data failed
-
readFromInputStream
Read everything from an input stream.- Parameters:
inputStream- the source of data, assumed to be following the mmCIF schema- Returns:
- the corresponding
Structure
-
readRenumbered
Read a renumbered structure entirely.- Parameters:
structureIdentifier- the structure to read- Returns:
- the corresponding
Structure
-
readOriginal
Read a selected range from an original structure.- Parameters:
structureIdentifier- the structure to read- Returns:
- the corresponding
Structure
-
readSome
Read some structure entirely.- Parameters:
structureIdentifier- the structure to read- Returns:
- the corresponding
Structure
-
writeRenumbered
Write a renumbered structure.- Parameters:
structureIdentifier- the structure identifier to writemmCifFile- the data source
-
deleteRenumbered
Drop information on a renumbered structure.- Parameters:
structureIdentifier- the structure identifier to remove
-
getOriginalInputStream
Acquire the input stream of an original structure.- Parameters:
structureIdentifier- the structure identifier to read- Returns:
- the corresponding input stream
-