Patch for JaxMe version 1.65
This patch is useful for managing pretty printing (i.e.
indented) when saving
a JaxMe object model to a file.
If you want to enable it, watch this example:
JMFileManager manager;
manager = new JMFileManager();
...
manager.setPrintMode
(JMAnyElement.PRETTY_PRINT_MODE);
...
---- Installing the patch ----
copy the file "jaxme-patch.diff" in the parent directory
of the source
(i.e. the "de" directory).
Change your current directory to the one mentioned
above and type:
patch -p1 -E < jaxme-patch.diff
Then copy the "de" directory distributed with this
package to the "de"
directory of the original source. This will add the
file "StringUtils.java".
---- Changelog ----
- Modified class de.ispsoft.jaxme.JMFileManager, to
accomodate the
"setPrintMode" method.
- Modified class de.ispsoft.jaxme.JMAnyElement, adding
two different "toWriter"
methods and two constants.
- Modified class de.ispsoft.jaxme.XMLSerializer, to permit
to set the
"default" line feed, i.e. the one that the machine really
takes as a line
feed.
The package containing the patch