Java in a Nutshell Online Quick Reference for Java 1.1
Availability: JDK 1.0
public abstract class URLConnection extends Object { // Protected Constructor protected URLConnection(URL url); // Class Variables 1.1 public static FileNameMap fileNameMap; // Protected Instance Variables protected boolean allowUserInteraction; protected boolean connected; protected boolean doInput; protected boolean doOutput; protected long ifModifiedSince; protected URL url; protected boolean useCaches; // Class Methods public static boolean getDefaultAllowUserInteraction(); public static String getDefaultRequestProperty(String key); protected static String guessContentTypeFromName(String fname); public static String guessContentTypeFromStream(InputStream is) throws IOException; public static synchronized void setContentHandlerFactory(ContentHandlerFactory fac); public static void setDefaultAllowUserInteraction(boolean defaultallowuserinteraction); public static void setDefaultRequestProperty(String key, String value); // Public Instance Methods public abstract void connect() throws IOException; public boolean getAllowUserInteraction(); public Object getContent() throws IOException; public String getContentEncoding(); public int getContentLength(); public String getContentType(); public long getDate(); public boolean getDefaultUseCaches(); public boolean getDoInput(); public boolean getDoOutput(); public long getExpiration(); public String getHeaderField(String name); public String getHeaderField(int n); public long getHeaderFieldDate(String name, long Default); public int getHeaderFieldInt(String name, int Default); public String getHeaderFieldKey(int n); public long getIfModifiedSince(); public InputStream getInputStream() throws IOException; public long getLastModified(); public OutputStream getOutputStream() throws IOException; public String getRequestProperty(String key); public URL getURL(); public boolean getUseCaches(); public void setAllowUserInteraction(boolean allowuserinteraction); public void setDefaultUseCaches(boolean defaultusecaches); public void setDoInput(boolean doinput); public void setDoOutput(boolean dooutput); public void setIfModifiedSince(long ifmodifiedsince); public void setRequestProperty(String key, String value); public void setUseCaches(boolean usecaches); public String toString(); // Overrides Object.toString() }