| java.lang.Object org.apache.harmony.luni.net.NetUtil
NetUtil | public class NetUtil (Code) | | |
Method Summary | |
static int | bytesToInt(byte bytes, int start) | public static List<Proxy> | getProxyList(URI uri) Gets proxy list according to the URI by system ProxySelector.
Parameters: uri - a list of proxy for the URI. | static void | intToBytes(int value, byte bytes, int start) | public static boolean | preferIPv4Stack() | public static boolean | preferIPv6Addresses() | public static boolean | usingSocks(Proxy proxy) Answers whether to use a SOCKS proxy.
Parameters: proxy - java.net.Proxy proxy is used to determinewhether using SOCKS proxy. |
bytesToInt | static int bytesToInt(byte bytes, int start)(Code) | | |
getProxyList | public static List<Proxy> getProxyList(URI uri)(Code) | | Gets proxy list according to the URI by system ProxySelector.
Parameters: uri - a list of proxy for the URI. Returns null if no proxy isavailable. |
intToBytes | static void intToBytes(int value, byte bytes, int start)(Code) | | |
preferIPv4Stack | public static boolean preferIPv4Stack()(Code) | | Answer whether to prefer IPV4 stack
boolean |
preferIPv6Addresses | public static boolean preferIPv6Addresses()(Code) | | Answer whether to prefer IPV6 address
boolean |
usingSocks | public static boolean usingSocks(Proxy proxy)(Code) | | Answers whether to use a SOCKS proxy.
Parameters: proxy - java.net.Proxy proxy is used to determinewhether using SOCKS proxy. true if only the type of proxy isProxy.Type.SOCKS. |
|
|