Stax validating steam updating a
SAX provides only a “push” parser (no writer) that requires a cumbersome event handling setup to obtain the parsed data, and DOM replicates the entire XML document in memory which is not feasible for large files.
However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder.
You could of course run a reformatter on the generated file but that might add a lot of processing time for large files.
One clever idea is to wrap the writer in a proxy but if you don’t need internally runs on top of SAX but that doesn’t need to concern us.
You can obtain * a copy of the License at https://java.net/public/CDDL * or glassfish/bootstrap/legal/
See the License for the specific * language governing permissions and limitations under the License.
formatting XML with line breaks and perhaps indentation.