SAXDocumentParser does not support custom encoding algorithms
Tomas-Kraus opened this issue · comments
Hi,
during construction, the AttributeHolder is initialized with empty
_registeredEncodingAlgorithms. Registering custom encoding algorithms later,
will not affect the AttributeHolder and thus prevents string serialization for
generic SAX string interfaces.
A workaround is to derive from SAXDocumentParser and override
setRegisteredEncodingAlgorithms, i.e:
public class X3DFIDocumentParser extends SAXDocumentParser {
@OverRide
public void setRegisteredEncodingAlgorithms(Map algorithms) {
super.setRegisteredEncodingAlgorithms(algorithms);
this._attributes = new AttributesHolder(this.getRegisteredEncodingAlgorithms());
}
}
Could also be the solution for this issue.
Best regards,
Kristian
Environment
Operating System: All
Platform: All
Affected Versions
[current]
- Issue Imported From: https://github.com/javaee/metro-fi/issues/32
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @glassfishrobot
@glassfishrobot Commented
Reported by tycoon_de
@glassfishrobot Commented
Was assigned to oleksiys
@glassfishrobot Commented
This issue was imported from java.net JIRA FI-32