Package com.io7m.sunburst.inventory
Class SBInventories
java.lang.Object
com.io7m.sunburst.inventory.SBInventories
- All Implemented Interfaces:
SBInventoryFactoryType
The default local inventory.
-
Constructor Summary
ConstructorsConstructorDescriptionThe default local inventory.SBInventories(com.io7m.mime2045.parser.api.MimeParserFactoryType inMimeParsers) The default local inventory. -
Method Summary
Modifier and TypeMethodDescriptionopenReadOnly(SBInventoryConfiguration configuration) Open the inventory in read-only mode.openReadWrite(SBInventoryConfiguration configuration) Open the inventory in read-write mode.
-
Constructor Details
-
SBInventories
public SBInventories(com.io7m.mime2045.parser.api.MimeParserFactoryType inMimeParsers) The default local inventory.- Parameters:
inMimeParsers- The MIME parsers
-
SBInventories
public SBInventories()The default local inventory.
-
-
Method Details
-
openReadOnly
public SBInventoryReadableType openReadOnly(SBInventoryConfiguration configuration) throws SBInventoryException Description copied from interface:SBInventoryFactoryTypeOpen the inventory in read-only mode.- Specified by:
openReadOnlyin interfaceSBInventoryFactoryType- Parameters:
configuration- The configuration- Returns:
- A readable inventory
- Throws:
SBInventoryException- On errors
-
openReadWrite
public SBInventoryType openReadWrite(SBInventoryConfiguration configuration) throws SBInventoryException Description copied from interface:SBInventoryFactoryTypeOpen the inventory in read-write mode.- Specified by:
openReadWritein interfaceSBInventoryFactoryType- Parameters:
configuration- The configuration- Returns:
- An inventory
- Throws:
SBInventoryException- On errors
-