|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.core.util.conversion.ObjectMarshaller
public class ObjectMarshaller
Ability to serialize/deserialize objects.
| Constructor Summary | |
|---|---|
init()
Constructor |
|
| Method Summary | |
|---|---|
any |
deserializeGeneric([any binaryObject])
deserialize generic way |
any |
deserializeObject([any binaryObject], [string filepath])
Deserialize an object using a binary object or a filepath |
any |
deserializeRailo([any binaryObject])
Deserialize the railo way |
any |
deserializeWithObjectLoad([any binaryObject])
deserialize using the new object load method |
private Any |
readFile(String FileToRead, [boolean ReadInBinaryFlag='false'])
Facade to Read a file's content |
private void |
saveToFile(any FileToSave, any FileContents)
Facade to save a file's content |
any |
serializeGeneric(any target)
Serialize generic way |
any |
serializeObject(any target, [string filePath])
Serialize an object and optionally save it into a file |
any |
serializeRailo(any target)
Serialize the railo way |
any |
serializeWithObjectSave(any target)
Serialize using new object save method |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init()
| Method Detail |
|---|
public any deserializeGeneric([any binaryObject])
binaryObject - The binary object to inflatepublic any deserializeObject([any binaryObject], [string filepath])
binaryObject - The binary object to inflatefilepath - The location of the file that has the binary object to inflatepublic any deserializeRailo([any binaryObject])
binaryObject - The binary object to inflatepublic any deserializeWithObjectLoad([any binaryObject])
binaryObject - The binary object to inflateprivate Any readFile(String FileToRead, [boolean ReadInBinaryFlag='false'])
FileToRead - The absolute path to the file.ReadInBinaryFlag - Read in binary flag.private void saveToFile(any FileToSave, any FileContents)
FileToSave - The absolute path to the file.FileContents - The file contentspublic any serializeGeneric(any target)
target - The complex object, such as a query or CFC, that will be serialized.public any serializeObject(any target, [string filePath])
target - The complex object, such as a query or CFC, that will be serialized.filePath - The path of the file in which to save the serialized data.public any serializeRailo(any target)
target - The complex object, such as a query or CFC, that will be serialized.public any serializeWithObjectSave(any target)
target - The complex object, such as a query or CFC, that will be serialized.
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||