/[classpath]/classpath/java/net/URLEncoder.java
ViewVC logotype

Diff of /classpath/java/net/URLEncoder.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by mark, Tue Jan 22 22:27:00 2002 UTC revision 1.8 by mark, Fri Oct 25 23:16:16 2002 UTC
# Line 99  public class URLEncoder Line 99  public class URLEncoder
99    public static String encode(String s, String encoding)    public static String encode(String s, String encoding)
100      throws UnsupportedEncodingException      throws UnsupportedEncodingException
101    {    {
     StringBuffer result = new StringBuffer();  
102      int length = s.length();      int length = s.length();
103      int start = 0;      int start = 0;
104      int i = 0;      int i = 0;
105    
106        StringBuffer result = new StringBuffer(length);
107      while (true)      while (true)
108      {      {
109        while ( i < length && isSafe(s.charAt(i)) )        while ( i < length && isSafe(s.charAt(i)) )

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26