Skip to content

Extensible TOC #1

@buko

Description

@buko

Major advantage of the XAR format is that it is extensible because the TOC that describes its structure is XML. As a developer I'd like to be able to add custom XML to the 'file' stanzas in the XAR TOC and then be able to quickly analyze the XAR TOC and the custom XML stanzas.

Implementation Note:

  1. We'd like to be able to modify TocFile (https://github.com/gino0631/xar/blob/master/xar-core/src/main/java/com/github/gino0631/xar/impl/jaxb/toc/TocFile.java) to use the JAXB '@XmlAnyElement' facility.

  2. Need to provide an API so that when XAR files and directories are added to the archive custom JAXB elements would be added to the TocFile structure. These custom JAXB elements would then be serialized/deserialized with the TocFile data structure.

  3. Provide a mechanism to customize the JAXB Context that is used to serialize/deserialize the TOC.

  4. Provide an API for examining the TOC and retrieving the custom XML elements.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions