Hi Tom

In regards to your comments

         public void write(int b) throws IOException {
+            // TODO: Is this character set independent?
+            // Why are we reparsing the entire output? - tfm
             myWriter.write((byte) (b & 255));
             if (xmiExtensionWriter != null) {
                 if (inTag) {

From what I remember Ludo intoduced this WriterOutputStream because
NSUML gave output to a writer and MDR gave output to an OutputStream

As the model interface had originally been written around NSUML that
is what we had to adapt to.

I think now is the time to deprecate XmiWriter in favour of something
more MDR friendly.

I made use of this existing class in order to detect the end of the
XMI.content and allow some listener to inject XMI.extensions into the
correct place in the output.

I'm sure the byte by byte parsing can be improved upon but if you have
some completely different idea of how to achieve this then do let me
know.

Cheers

Bob.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to