public abstract class PersistorToFileDelegate extends PersistorToFile
PersistorToString
to get back the string format of the Persistable object, then it will write that string into the file.Modifier and Type | Field and Description |
---|---|
(package private) PersistorToString |
delegatePersistor
The delegate string persistor.
|
filename, ignoredFieldsForUnpickle, persistFile, reader, writer
runtime
Constructor and Description |
---|
PersistorToFileDelegate(RuntimeDataInterface runtime,
java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeUnpickle() |
protected Persistable |
doUnpickle() |
protected abstract void |
instantiateDelegatePersitor()
Instantiate a concrete PersistorToString.
|
Persistable |
unpickle(java.util.Map<java.lang.String,java.util.List<java.lang.String>> ignoredFields)
Provided default implementation, simply throw out a SAFSException.
|
protected void |
write(Persistable persistable)
Write the Persistable object into a persistent material.
PersistorToFile.writeHeader(Persistable) is called beforePersistorToFile.writeTailer(Persistable) is called after |
equals, escape, getPersistenceName, getType, isIgnoredFiled, persist, stringNeedQuoted, unpersist, writeHeader, writeTailer
validate
PersistorToString delegatePersistor
public PersistorToFileDelegate(RuntimeDataInterface runtime, java.lang.String filename)
runtime
- filename
- protected abstract void instantiateDelegatePersitor()
PersistorToFileDelegate(RuntimeDataInterface, String)
.public Persistable unpickle(java.util.Map<java.lang.String,java.util.List<java.lang.String>> ignoredFields) throws SAFSException
AbstractPersistor
unpickle
in interface Persistor
unpickle
in class PersistorToFile
ignoredFields
- Map<String, List<String>>, a Map containing the fields of each class to be ignored when un-pickling.SAFSException
protected void beforeUnpickle() throws SAFSException, java.io.IOException
beforeUnpickle
in class PersistorToFile
SAFSException
java.io.IOException
protected Persistable doUnpickle() throws SAFSException, java.io.IOException
doUnpickle
in class PersistorToFile
SAFSException
java.io.IOException
protected final void write(Persistable persistable) throws SAFSException, java.io.IOException
PersistorToFile
PersistorToFile.writeHeader(Persistable)
is called beforePersistorToFile.writeTailer(Persistable)
is called afterwrite
in class PersistorToFile
SAFSException
java.io.IOException
Copyright © SAS Institute. All Rights Reserved.