Details
Description
As discussed on the GeoServer developers list, it would be useful to have some basic transactionality in xml Translators. The attached patch provides it in TranslatorSupport. Old calling code that is unaware of the mark/reset/commit methods should be unaffected by the new features.
1. no test cases
2. no need for exclamation ponts in exception messages...i think the java stack trace is jarring enough for users :)
Also something to be weary of is performance. Those methods start,chars,etc... tend to be called a lot during say gml generation of large datasets. It would be good to see if there are any performance degradation that occurs here by adding the conditionals to all the methods. Could be an informal benchmark but it would be good to say take a dataset of a few million features and do a gml dump via geoserver of them... measuring pre and post patch to see if any degradation occurs.