|
|
|
@ -4,7 +4,7 @@ import java.net.URL |
|
|
|
|
import java.net.URLConnection |
|
|
|
|
import java.net.URLStreamHandler |
|
|
|
|
|
|
|
|
|
class Handler : URLStreamHandler() { |
|
|
|
|
object Handler : URLStreamHandler() { |
|
|
|
|
|
|
|
|
|
override fun getDefaultPort(): Int { |
|
|
|
|
return 80 |
|
|
|
@ -13,13 +13,4 @@ class Handler : URLStreamHandler() { |
|
|
|
|
public override fun openConnection(u: URL): URLConnection? { |
|
|
|
|
return null |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun parseURL(url: URL, spec: String, start: Int, end: Int) { |
|
|
|
|
super.parseURL(url, spec, start, end) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
companion object { |
|
|
|
|
|
|
|
|
|
val HANDLER: URLStreamHandler = Handler() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|