You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Hervé Boutemy (JIRA)" <ji...@apache.org> on 2008/04/02 22:19:25 UTC

[jira] Created: (IO-162) add Xml(Stream)Reader/Writer from ROME

add Xml(Stream)Reader/Writer from ROME
--------------------------------------

                 Key: IO-162
                 URL: https://issues.apache.org/jira/browse/IO-162
             Project: Commons IO
          Issue Type: New Feature
          Components: Streams/Writers
            Reporter: Hervé Boutemy


XmlReader is a class written by Alejandro Abdelnur in the ROME project (http://rome.dev.java.net) to detect encoding from a stream containing an XML document.
It has been integrated into Maven 2.0.8, via XmlStreamReader in plexus-utils, and I added XmlStreamWriter.

commons-io seems the right library to distribute these utilities.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IO-162) add Xml(Stream)Reader/Writer from ROME

Posted by "Hervé Boutemy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IO-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hervé Boutemy updated IO-162:
-----------------------------

    Attachment: IO-162.patch

> add Xml(Stream)Reader/Writer from ROME
> --------------------------------------
>
>                 Key: IO-162
>                 URL: https://issues.apache.org/jira/browse/IO-162
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>            Reporter: Hervé Boutemy
>         Attachments: IO-162.patch
>
>
> XmlReader is a class written by Alejandro Abdelnur in the ROME project (http://rome.dev.java.net) to detect encoding from a stream containing an XML document.
> It has been integrated into Maven 2.0.8, via XmlStreamReader in plexus-utils, and I added XmlStreamWriter.
> commons-io seems the right library to distribute these utilities.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (IO-162) add Xml(Stream)Reader/Writer from ROME

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IO-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton resolved IO-162.
--------------------------------

         Assignee: Niall Pemberton
    Fix Version/s: 2.0
       Resolution: Fixed

Thanks for the patch - I applied it:
    http://svn.apache.org/viewvc?view=revision&revision=1004090

I did some refactoring to the BOM & XML guess detection to use IO's new BOMInputStream (see IO-178):
    http://svn.apache.org/viewvc?view=revision&revision=1004092

I also refactored to remove to store the InputStream in the XmlStreamReaderException:
    http://svn.apache.org/viewvc?view=revision&revision=1004109

> add Xml(Stream)Reader/Writer from ROME
> --------------------------------------
>
>                 Key: IO-162
>                 URL: https://issues.apache.org/jira/browse/IO-162
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>            Reporter: Hervé Boutemy
>            Assignee: Niall Pemberton
>             Fix For: 2.0
>
>         Attachments: IO-162.patch
>
>
> XmlReader is a class written by Alejandro Abdelnur in the ROME project (http://rome.dev.java.net) to detect encoding from a stream containing an XML document.
> It has been integrated into Maven 2.0.8, via XmlStreamReader in plexus-utils, and I added XmlStreamWriter.
> commons-io seems the right library to distribute these utilities.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IO-162) add Xml(Stream)Reader/Writer from ROME

Posted by "Hervé Boutemy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IO-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585307#action_12585307 ] 

Hervé Boutemy commented on IO-162:
----------------------------------

Maven use case: pom.xml content is read as String to do interpolation = search for ${xxx} to replace with a property value, and only after the interpolation process it is parsed by an Xml Pull Parser.
Without this class, XML encoding support would have meant changing the whole interpolation process, to integrate it tightly into the parser (do interpolation on each parser event).

Getting an XML content as a String is handy to get the content of an XML file (or more generally stream) without actually parsing it: for example if you write a file editor.

> add Xml(Stream)Reader/Writer from ROME
> --------------------------------------
>
>                 Key: IO-162
>                 URL: https://issues.apache.org/jira/browse/IO-162
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>            Reporter: Hervé Boutemy
>         Attachments: IO-162.patch
>
>
> XmlReader is a class written by Alejandro Abdelnur in the ROME project (http://rome.dev.java.net) to detect encoding from a stream containing an XML document.
> It has been integrated into Maven 2.0.8, via XmlStreamReader in plexus-utils, and I added XmlStreamWriter.
> commons-io seems the right library to distribute these utilities.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IO-162) add Xml(Stream)Reader/Writer from ROME

Posted by "Hervé Boutemy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IO-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hervé Boutemy updated IO-162:
-----------------------------

    Attachment: IO-162.patch

> add Xml(Stream)Reader/Writer from ROME
> --------------------------------------
>
>                 Key: IO-162
>                 URL: https://issues.apache.org/jira/browse/IO-162
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>            Reporter: Hervé Boutemy
>         Attachments: IO-162.patch
>
>
> XmlReader is a class written by Alejandro Abdelnur in the ROME project (http://rome.dev.java.net) to detect encoding from a stream containing an XML document.
> It has been integrated into Maven 2.0.8, via XmlStreamReader in plexus-utils, and I added XmlStreamWriter.
> commons-io seems the right library to distribute these utilities.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IO-162) add Xml(Stream)Reader/Writer from ROME

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IO-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585278#action_12585278 ] 

Jukka Zitting commented on IO-162:
----------------------------------

What are the use cases for this? I understand parsing and serialization of XML documents, but why would you just want to convert the octet stream to a character stream (or vice versa)? I'm sure there are good reasons for doing that, I just can't come up with any of them right now.

> add Xml(Stream)Reader/Writer from ROME
> --------------------------------------
>
>                 Key: IO-162
>                 URL: https://issues.apache.org/jira/browse/IO-162
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>            Reporter: Hervé Boutemy
>         Attachments: IO-162.patch
>
>
> XmlReader is a class written by Alejandro Abdelnur in the ROME project (http://rome.dev.java.net) to detect encoding from a stream containing an XML document.
> It has been integrated into Maven 2.0.8, via XmlStreamReader in plexus-utils, and I added XmlStreamWriter.
> commons-io seems the right library to distribute these utilities.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IO-162) add Xml(Stream)Reader/Writer from ROME

Posted by "Hervé Boutemy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IO-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hervé Boutemy updated IO-162:
-----------------------------

    Attachment:     (was: IO-162.patch)

> add Xml(Stream)Reader/Writer from ROME
> --------------------------------------
>
>                 Key: IO-162
>                 URL: https://issues.apache.org/jira/browse/IO-162
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>            Reporter: Hervé Boutemy
>         Attachments: IO-162.patch
>
>
> XmlReader is a class written by Alejandro Abdelnur in the ROME project (http://rome.dev.java.net) to detect encoding from a stream containing an XML document.
> It has been integrated into Maven 2.0.8, via XmlStreamReader in plexus-utils, and I added XmlStreamWriter.
> commons-io seems the right library to distribute these utilities.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.