[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Second round of java.net.URI fixes
From: |
Andrew John Hughes |
Subject: |
[cp-patches] FYI: Second round of java.net.URI fixes |
Date: |
Thu, 19 May 2005 20:14:44 +0100 |
User-agent: |
Mutt/1.5.9i |
I'm committing the attached patch, which implements the remaining
unimplemented methods in java.net.URI (stubs up until now).
I'll shortly be adding some Mauve tests to accompany them.
It's solved a number of issues in my own URI use.
Changelog:
2005-05-19 Andrew John Hughes <address@hidden>
* java/net/URI.java:
Added more documentation.
(RFC2396_MARK): Removed.
(RFC2396_UNRESERVED): Changed to RFC3986_UNRESERVED and updated.
(RFC2396_REG_NAME): Changed to RFC3986_REG_NAME and updated.
(RFC2396_PCHAR): Changed to RFC3986_PCHAR and updated.
(RFC2396_SEGMENT): Changed to RFC3986_SEGMENT and updated.
(RFC2396_PATH_SEGMENTS): Changed to RFC3986_PATH_SEGMENTS.
(RFC3986_UNRESERVED): New field.
(RFC3986_SSP): New field.
(RFC3986_HOST): New field.
(RFC3986_USERINFO): New field.
(static): New initializer to initialize patterns with class.
(parseURI()): Moved authority parsing to parseServerAuthority().
(unquote(String)): Removed invalid exception for non-ASCII chars.
(quote(String)): Implemented.
(quoteAuthority(String)): Adapted to use new fields.
(quote(String,String)): Moved escaping of characters to another
method.
(quoteHost(String)): Implemented.
(quotePath(String)): Adapted to use new fields.
(quoteUserInfo(String)): Implemented.
(parseServerAuthority()): Implemented.
(normalize()): Implemented.
(normalizePath(String)): Implemented as part of normalize().
(removeLastSegment(StringBuffer)): Likewise.
(relativize(java.net.URI)): Implemented.
(equals(Object)): Implemented.
(hashCode()): Implemented.
(compareTo(Object)): Implemented.
(compareFragments(java.net.URI)): Implemented.
(toString()): Use fields directly.
(toASCIIString()): Implemented.
(escapeCharacters(String)): Implemented to escape non-ASCII characters.
--
Andrew :-)
Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
No software patents in Europe -- http://nosoftwarepatents.com
"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 { ... }
uri-02.diff
Description: Text document
signature.asc
Description: Digital signature
- [cp-patches] FYI: Second round of java.net.URI fixes,
Andrew John Hughes <=