public class PropertyPack.SaveCluster extends PropertyPack.DirCluster
propNodeList| Constructor and Description |
|---|
SaveCluster(File sink)
Construct a SaveCluster targeting a given file
|
| Modifier and Type | Method and Description |
|---|---|
int |
addPropNodes()
Add a single SaveNode.
|
protected void |
createSaveNode()
Ensure that saveNode has a value.
|
InputStream |
openFile(java.lang.String relName)
Opens a file in same directory as the saveNode.
|
java.lang.String |
toString() |
countPropNodes, equals, forEachProperty, forEachPropNode, getURL, hashCodepublic SaveCluster(File sink)
sink - File where property changes should be savedprotected void createSaveNode()
public int addPropNodes()
addPropNodes in class PropertyPack.Clusterpublic InputStream openFile(java.lang.String relName)
throws IOException
openFile in class PropertyPack.DirClusterrelName - name within dir. This name may end artificially
with SAVENODE_FILENAME_APPENDAGE, which must be stripped.IOException - IO errorpublic java.lang.String toString()
toString in class PropertyPack.DirCluster