Package ipsk.net
Class EditableURL
- java.lang.Object
-
- ipsk.net.EditableURL
-
public class EditableURL extends java.lang.ObjectAn URL container whose contents can be modified.- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Constructor Summary
Constructors Constructor Description EditableURL(java.net.URL url)Creates new editable URL object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddQuerys(java.util.Hashtable<java.lang.String,java.lang.String> queries)Adds some queries (key/value String pairs) to the URL.java.net.URLgetUrl()Get the URL.static voidmain(java.lang.String[] args)Test method.voidsetUrl(java.net.URL url)Set the URL.
-
-
-
Method Detail
-
addQuerys
public void addQuerys(java.util.Hashtable<java.lang.String,java.lang.String> queries) throws java.io.UnsupportedEncodingExceptionAdds some queries (key/value String pairs) to the URL.- Parameters:
queries- query pairs- Throws:
java.io.UnsupportedEncodingException- if the queries cannot be URL encoded
-
getUrl
public java.net.URL getUrl()
Get the URL.- Returns:
- url URL
-
setUrl
public void setUrl(java.net.URL url)
Set the URL.- Parameters:
url- the URL to set
-
main
public static void main(java.lang.String[] args)
Test method.- Parameters:
args-
-
-