Interface PushSpool.Storage
- Enclosing class:
PushSpool
public static interface PushSpool.Storage
Reads and writes the tree as XML: the server's property factory in production, a test's own in a test.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionLoads a spool file.voidsave(File file, PNSpoolerRoot root) Writes a tree.
Method Details
load
Loads a spool file.- Parameters:
file- The file, which exists.- Returns:
- The tree.
- Throws:
IOException- For file errors.PropException- For property errors.
save
Writes a tree.- Parameters:
file- The file.root- The tree, a snapshot the caller owns.- Throws:
IOException- For file errors.PropException- For property errors.