[x3d-public] Wish list for X3DJSAIL
John Carlson
yottzumm at gmail.com
Wed Mar 20 14:53:00 PDT 2024
Support:
toWriterXML(Writer w)
toOutputStreamXML(OutputStream os)
fromReaderXML(Reader r)
fromInputStreamXML(InputStream is)
methods in I/O classes or buffering/channel classes (java.nio). I’ve not
used java.nio much. One can also consider Jackson XML.
Or otherwise support XML Source and Result interfaces, namely:
javax.xml.transform.Source
javax.xml.transform.Result
and implementers (preferred over above, I think), Sources can return a Node.
I may do this myself. Let me know if this is already done.
Comments?
It would be good to do this for Classic VRML and VRML97 as well.
The benefit is that the developer can bring any I/O object classes and any
XML i/o they want. I believe that this can provide for formatting/pretty
printing as well, and the user should be able to specify what pretty
printing they want, so indenting is not necessary, or can be customized.
What I’m ultimately aiming for is flexibility in field output ordering. I
realize this may not do it, can I bring my own stylesheets to X3DJSAIL?
Suggestions on how to override current methods recommended? I just want to
override the HAnimHumanoid class. I don’t want to touch X3DJSAIL if I can
help it.
Another advantage might be that one doesn’t have to hold the whole document
in a String on output.
Breathe Java!
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20240320/1058b6c0/attachment.html>
More information about the x3d-public
mailing list