coldbox.system.core.conversion

Class ObjectMarshaller

WEB-INF.cftags.component
        extended by coldbox.system.core.conversion.ObjectMarshaller
Class Attributes:
  • output : false
  •  

    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
    None

    Constructor Detail

    init

    public init()

    Constructor


    Method Detail

    deserializeGeneric

    public any deserializeGeneric([any binaryObject])

    deserialize generic way

    Parameters:
    binaryObject - The binary object to inflate

    deserializeObject

    public any deserializeObject([any binaryObject], [string filepath])

    Deserialize an object using a binary object or a filepath

    Parameters:
    binaryObject - The binary object to inflate
    filepath - The location of the file that has the binary object to inflate

    deserializeRailo

    public any deserializeRailo([any binaryObject])

    Deserialize the railo way

    Parameters:
    binaryObject - The binary object to inflate

    deserializeWithObjectLoad

    public any deserializeWithObjectLoad([any binaryObject])

    deserialize using the new object load method

    Parameters:
    binaryObject - The binary object to inflate

    readFile

    private Any readFile(String fileToRead)

    Facade to Read a file's content

    Parameters:
    fileToRead - The absolute path to the file.

    saveToFile

    private void saveToFile(any fileToSave, any fileContents, [string charSet='utf-8'])

    Facade to save a file's content

    Parameters:
    fileToSave - The absolute path to the file.
    fileContents - The file contents
    charSet - CF File CharSet Encoding to use.

    serializeGeneric

    public any serializeGeneric(any target)

    Serialize generic way

    Parameters:
    target - The complex object, such as a query or CFC, that will be serialized.

    serializeObject

    public any serializeObject(any target, [string filePath])

    Serialize an object and optionally save it into a file.

    Parameters:
    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.

    serializeRailo

    public any serializeRailo(any target)

    Serialize the railo way

    Parameters:
    target - The complex object, such as a query or CFC, that will be serialized.

    serializeWithObjectSave

    public any serializeWithObjectSave(any target)

    Serialize using new object save method

    Parameters:
    target - The complex object, such as a query or CFC, that will be serialized.