/doc/com/googlecode/charts4j/UrlUtil.html

http://charts4j.googlecode.com/ · HTML · 228 lines · 181 code · 27 blank · 20 comment · 0 complexity · f25dd8dc333dda1641da16b8d6d053e8 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.5.0_16) on Tue May 19 12:59:31 MDT 2009 -->
  6. <TITLE>
  7. UrlUtil (charts4j - 1.2)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="com.googlecode.charts4j.UrlUtil class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
  11. <SCRIPT type="text/javascript">
  12. function windowTitle()
  13. {
  14. parent.document.title="UrlUtil (charts4j - 1.2)";
  15. }
  16. </SCRIPT>
  17. <NOSCRIPT>
  18. </NOSCRIPT>
  19. </HEAD>
  20. <BODY BGCOLOR="white" onload="windowTitle();">
  21. <!-- ========= START OF TOP NAVBAR ======= -->
  22. <A NAME="navbar_top"><!-- --></A>
  23. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  24. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  25. <TR>
  26. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  27. <A NAME="navbar_top_firstrow"><!-- --></A>
  28. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  29. <TR ALIGN="center" VALIGN="top">
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../com/googlecode/charts4j/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  32. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  36. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  37. </TR>
  38. </TABLE>
  39. </TD>
  40. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  41. </EM>
  42. </TD>
  43. </TR>
  44. <TR>
  45. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  46. &nbsp;<A HREF="../../../com/googlecode/charts4j/TitledChart.ChartTitle.html" title="class in com.googlecode.charts4j"><B>PREV CLASS</B></A>&nbsp;
  47. &nbsp;<A HREF="../../../com/googlecode/charts4j/USAState.html" title="class in com.googlecode.charts4j"><B>NEXT CLASS</B></A></FONT></TD>
  48. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  49. <A HREF="../../../index.html?com/googlecode/charts4j/UrlUtil.html" target="_top"><B>FRAMES</B></A> &nbsp;
  50. &nbsp;<A HREF="UrlUtil.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  51. &nbsp;<SCRIPT type="text/javascript">
  52. <!--
  53. if(window==top) {
  54. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  55. }
  56. //-->
  57. </SCRIPT>
  58. <NOSCRIPT>
  59. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  60. </NOSCRIPT>
  61. </FONT></TD>
  62. </TR>
  63. <TR>
  64. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  65. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  66. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  67. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  68. </TR>
  69. </TABLE>
  70. <A NAME="skip-navbar_top"></A>
  71. <!-- ========= END OF TOP NAVBAR ========= -->
  72. <HR>
  73. <!-- ======== START OF CLASS DATA ======== -->
  74. <H2>
  75. <FONT SIZE="-1">
  76. com.googlecode.charts4j</FONT>
  77. <BR>
  78. Class UrlUtil</H2>
  79. <PRE>
  80. <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
  81. <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.googlecode.charts4j.UrlUtil</B>
  82. </PRE>
  83. <HR>
  84. <DL>
  85. <DT><PRE>public final class <B>UrlUtil</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
  86. </PRE>
  87. <P>
  88. Small URL utility class.
  89. <P>
  90. <P>
  91. <DL>
  92. <DT><B>Author:</B></DT>
  93. <DD>Julien Chastang (julien.c.chastang at gmail dot com)</DD>
  94. </DL>
  95. <HR>
  96. <P>
  97. <!-- ========== METHOD SUMMARY =========== -->
  98. <A NAME="method_summary"><!-- --></A>
  99. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  100. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  101. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  102. <B>Method Summary</B></FONT></TH>
  103. </TR>
  104. <TR BGCOLOR="white" CLASS="TableRowColor">
  105. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  106. <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  107. <TD><CODE><B><A HREF="../../../com/googlecode/charts4j/UrlUtil.html#normalize(java.lang.String)">normalize</A></B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;s)</CODE>
  108. <BR>
  109. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A method that reformats the URL so that the parameters appear in
  110. alphabetical order.</TD>
  111. </TR>
  112. </TABLE>
  113. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  114. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  115. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  116. <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
  117. </TR>
  118. <TR BGCOLOR="white" CLASS="TableRowColor">
  119. <TD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  120. </TR>
  121. </TABLE>
  122. &nbsp;
  123. <P>
  124. <!-- ============ METHOD DETAIL ========== -->
  125. <A NAME="method_detail"><!-- --></A>
  126. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  127. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  128. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  129. <B>Method Detail</B></FONT></TH>
  130. </TR>
  131. </TABLE>
  132. <A NAME="normalize(java.lang.String)"><!-- --></A><H3>
  133. normalize</H3>
  134. <PRE>
  135. public static <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>normalize</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;s)</PRE>
  136. <DL>
  137. <DD>A method that reformats the URL so that the parameters appear in
  138. alphabetical order. This is useful for comparing URL strings in unit
  139. tests, for instance.
  140. <P>
  141. <DD><DL>
  142. <DT><B>Parameters:</B><DD><CODE>s</CODE> - String to be normalized
  143. <DT><B>Returns:</B><DD>Normalized string</DL>
  144. </DD>
  145. </DL>
  146. <!-- ========= END OF CLASS DATA ========= -->
  147. <HR>
  148. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  149. <A NAME="navbar_bottom"><!-- --></A>
  150. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  151. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  152. <TR>
  153. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  154. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  155. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  156. <TR ALIGN="center" VALIGN="top">
  157. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  158. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../com/googlecode/charts4j/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  159. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  160. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  161. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  162. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  163. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  164. </TR>
  165. </TABLE>
  166. </TD>
  167. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  168. </EM>
  169. </TD>
  170. </TR>
  171. <TR>
  172. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  173. &nbsp;<A HREF="../../../com/googlecode/charts4j/TitledChart.ChartTitle.html" title="class in com.googlecode.charts4j"><B>PREV CLASS</B></A>&nbsp;
  174. &nbsp;<A HREF="../../../com/googlecode/charts4j/USAState.html" title="class in com.googlecode.charts4j"><B>NEXT CLASS</B></A></FONT></TD>
  175. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  176. <A HREF="../../../index.html?com/googlecode/charts4j/UrlUtil.html" target="_top"><B>FRAMES</B></A> &nbsp;
  177. &nbsp;<A HREF="UrlUtil.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  178. &nbsp;<SCRIPT type="text/javascript">
  179. <!--
  180. if(window==top) {
  181. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  182. }
  183. //-->
  184. </SCRIPT>
  185. <NOSCRIPT>
  186. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  187. </NOSCRIPT>
  188. </FONT></TD>
  189. </TR>
  190. <TR>
  191. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  192. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  193. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  194. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  195. </TR>
  196. </TABLE>
  197. <A NAME="skip-navbar_bottom"></A>
  198. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  199. <HR>
  200. </BODY>
  201. </HTML>