|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLConnection
org.eclipse.osgi.framework.internal.core.BundleURLConnection
public class BundleURLConnection
URLConnection for BundleClassLoader resources.
| Field Summary | |
|---|---|
protected BundleEntry |
bundleEntry
BundleEntry that the URL is associated. |
protected String |
contentType
content type for this URLConnection |
protected InputStream |
in
InputStream for this URLConnection. |
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
BundleURLConnection(URL url,
BundleEntry bundleEntry)
Constructor for a BundleClassLoader resource URLConnection. |
|
| Method Summary | |
|---|---|
void |
connect()
|
int |
getContentLength()
|
String |
getContentType()
|
boolean |
getDoInput()
|
boolean |
getDoOutput()
|
URL |
getFileURL()
Converts the URL to a URL that uses the file: protocol. |
InputStream |
getInputStream()
|
long |
getLastModified()
|
URL |
getLocalURL()
Converts the URL to a common local URL protocol (i.e file: or jar: protocol) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final BundleEntry bundleEntry
protected InputStream in
protected String contentType
| Constructor Detail |
|---|
public BundleURLConnection(URL url,
BundleEntry bundleEntry)
url - URL for this URLConnection.bundleEntry - BundleEntry that the URLConnection is associated.| Method Detail |
|---|
public void connect()
throws IOException
connect in class URLConnectionIOExceptionpublic int getContentLength()
getContentLength in class URLConnectionpublic String getContentType()
getContentType in class URLConnectionpublic boolean getDoInput()
getDoInput in class URLConnectionpublic boolean getDoOutput()
getDoOutput in class URLConnection
public InputStream getInputStream()
throws IOException
getInputStream in class URLConnectionIOExceptionpublic long getLastModified()
getLastModified in class URLConnectionpublic URL getLocalURL()
public URL getFileURL()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||