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, writerruntime| 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, writeTailervalidatePersistorToString 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
AbstractPersistorunpickle in interface Persistorunpickle in class PersistorToFileignoredFields - Map<String, List<String>>, a Map containing the fields of each class to be ignored when un-pickling.SAFSExceptionprotected void beforeUnpickle()
throws SAFSException,
java.io.IOException
beforeUnpickle in class PersistorToFileSAFSExceptionjava.io.IOExceptionprotected Persistable doUnpickle() throws SAFSException, java.io.IOException
doUnpickle in class PersistorToFileSAFSExceptionjava.io.IOExceptionprotected final void write(Persistable persistable) throws SAFSException, java.io.IOException
PersistorToFilePersistorToFile.writeHeader(Persistable) is called beforePersistorToFile.writeTailer(Persistable) is called afterwrite in class PersistorToFileSAFSExceptionjava.io.IOExceptionCopyright © SAS Institute. All Rights Reserved.