All Packages Class Hierarchy This Package Previous Next Index
Class ice.protocols.jam.JamConnection
java.lang.Object
|
+----java.net.URLConnection
|
+----ice.protocols.jam.JamConnection
- public class JamConnection
- extends URLConnection
- implements FileNameMap
Class for accessing resources inside JAR files.
-
connect()
-
-
getContent()
-
-
getContentType()
-
-
getContentTypeFor(String)
- Returns the content type of the resource we are loading from
the JAR file.
-
getInputStream()
-
connect
public void connect() throws IOException
- Overrides:
- connect in class URLConnection
getContent
public Object getContent() throws IOException
- Overrides:
- getContent in class URLConnection
getContentType
public String getContentType()
- Overrides:
- getContentType in class URLConnection
getInputStream
public InputStream getInputStream() throws IOException
- Overrides:
- getInputStream in class URLConnection
getContentTypeFor
public String getContentTypeFor(String fileName)
- Returns the content type of the resource we are loading from
the JAR file. We currently only return a few basic types:
text/html
application/zip
text/plain
All Packages Class Hierarchy This Package Previous Next Index