tsgrp / OpenAnnotate

TSG's Browser-based Annotation Tool
8 stars 4 forks source link

FilenetAnnotationParserImpl Enhancment: Parse Encoded Hexadecimal as Unsigned Integers Instead of Strings #811

Open newmanju opened 4 years ago

newmanju commented 4 years ago

FileNet annotations store data as one long encoded string of hexadecimals. To easily wrap our minds around parsing this data, we have been dealing with it as a String. This allows us to use indexing and substrings. There is nothing functionally wrong with this, but a performance improvement could be achieved by parsing it as an unsigned integer and by packing bytes. Here is a list of examples/resources on how to do this:

The method that would receive this enhancement is FilenetAnnotationParserImpl#parseDataFieldsFromStream