Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Conversation

vinlecomte
Copy link

https://groups.google.com/forum/#!topic/jackson-dev/QDkhQBD3PaA

Hi Tatu

According to our discussion, this is our changes to the CBOR dataformat that allows the usage of bounded arrays and objects. No changes to the API has been done. The implementation in CBORGenerator has slightly changed for:
• writeStartArray()
• writeStartArray(int size)
• writeEndArray()
• writeStartObject()
• writeStartObject(Object forValue)
• writeEndtObject ()

We added:
• writeStartObject (int size) (new method)
• Stack _arraySize
• Stack _objectSize

The class CBORGeneratorSizer decorates CBORGenerator permits the queuing of writing commands defined in CBORCommands. We stack the commands until the end of objects or arrays.

We created another Factory to avoid impacting CBORFactory. Also we want both functionality available since our approach can have some drawbacks on memory usage.

Thanks,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant