classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Addition of XML input to java.util.Properties


From: Andrew John Hughes
Subject: [cp-patches] Addition of XML input to java.util.Properties
Date: Sun, 23 Oct 2005 22:56:01 +0100
User-agent: Mutt/1.5.9i

I'm committing the attached patch which adds a parser for the XML
property files to java.util.Properties.  There are still some problems
with actually using this, due to the XML parser stumbling over the Sun
DTD (which shouldn't even be being parsed, but still is).  I'll file a
bug on this shortly.  The patch does work, with a input properties file
hacked to use a locally modified version of the DTD.

Changelog:

2005-10-23  Andrew John Hughes  <address@hidden>

        * java/util/Properties.java
        (storeToXML(OutputStream,String,String)): Added null pointer checks.
        (loadFromXML(InputStream)): Implemented.
        (PropertiesHandler): New class to handle parsing events.
        (PropertiesHandler()): New constructor.
        (startDTD(String,String,String)): Implemented.
        (startElement(String,String,String,Attributes)): Implemented.
        (characters(char[],int,int)): Implemented.
        (endElement(String,String,String)): Implemented.
        (endDocument()): Implemented.

-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

"Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn." 
-- Richard Stallman

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }

Attachment: properties_02.diff
Description: Text document

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]