package java.net;

import java.io.UnsupportedEncodingException;

public class URLEncoder {
	private URLEncoder() {
	}

	@Deprecated
	public static String encode(String s) {
		try {
			return encode(s, "UTF-8");
		} catch (UnsupportedEncodingException e) {
			throw new RuntimeException(e);
		}
	}

	native public static String encode(String s, String enc) throws UnsupportedEncodingException;
}

@@ -56,16 +56,67 @@
 ception;
+%0Aimport com.jtransc.annotation.haxe.HaxeMethodBody;
 %0A%0Apublic
@@ -342,16 +342,70 @@
 %09%09%7D%0A%09%7D%0A%0A
+%09@HaxeMethodBody(%22return StringTools.urlEncode(p0);%22)%0A
 %09native 

fix URLEncoder