public abstract class URLConnection extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowUserInteraction |
protected boolean |
connected |
protected boolean |
doInput |
protected boolean |
doOutput |
protected long |
ifModifiedSince |
protected URL |
url |
protected boolean |
useCaches |
| Modifier | Constructor and Description |
|---|---|
protected |
URLConnection(URL var0) |
protected boolean allowUserInteraction
protected boolean connected
protected boolean doInput
protected boolean doOutput
protected long ifModifiedSince
protected URL url
protected boolean useCaches
protected URLConnection(URL var0)
public abstract void connect()
throws IOException
IOExceptionpublic boolean getAllowUserInteraction()
public Object getContent() throws IOException
IOExceptionpublic Object getContent(Class[] var0) throws IOException
IOExceptionpublic String getContentEncoding()
public int getContentLength()
public String getContentType()
public long getDate()
public static boolean getDefaultAllowUserInteraction()
public boolean getDefaultUseCaches()
public boolean getDoInput()
public boolean getDoOutput()
public long getExpiration()
public static FileNameMap getFileNameMap()
public String getHeaderField(int var0)
public long getHeaderFieldDate(String var0, long var1)
public int getHeaderFieldInt(String var0, int var1)
public String getHeaderFieldKey(int var0)
public Map getHeaderFields()
public long getIfModifiedSince()
public InputStream getInputStream() throws IOException
IOExceptionpublic long getLastModified()
public OutputStream getOutputStream() throws IOException
IOExceptionpublic Permission getPermission() throws IOException
IOExceptionpublic Map getRequestProperties()
public URL getURL()
public boolean getUseCaches()
public static String guessContentTypeFromStream(InputStream var0) throws IOException
IOExceptionpublic void setAllowUserInteraction(boolean var0)
public static void setContentHandlerFactory(ContentHandlerFactory var0)
public static void setDefaultAllowUserInteraction(boolean var0)
public void setDefaultUseCaches(boolean var0)
public void setDoInput(boolean var0)
public void setDoOutput(boolean var0)
public static void setFileNameMap(FileNameMap var0)
public void setIfModifiedSince(long var0)
public void setUseCaches(boolean var0)