|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |
WEB-INF.cftags.componentcoldbox.system.core.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)
Facade to Read a file's content |
private void |
saveToFile(any fileToSave, any fileContents, [string charSet='utf-8'])
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)
fileToRead
- The absolute path to the file.private void saveToFile(any fileToSave, any fileContents, [string charSet='utf-8'])
fileToSave
- The absolute path to the file.fileContents
- The file contentscharSet
- CF File CharSet Encoding to use.public 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 3.7.0 | ||||
FRAMES |