|
||||||||||
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 java.lang.String |
contentType
content type for this URLConnection |
protected java.io.InputStream |
in
InputStream for this URLConnection. |
Fields inherited from class java.net.URLConnection |
---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
---|---|
BundleURLConnection(java.net.URL url,
BundleEntry bundleEntry)
Constructor for a BundleClassLoader resource URLConnection. |
Method Summary | |
---|---|
void |
connect()
|
int |
getContentLength()
|
java.lang.String |
getContentType()
|
boolean |
getDoInput()
|
boolean |
getDoOutput()
|
java.net.URL |
getFileURL()
Converts the URL to a URL that uses the file: protocol. |
java.io.InputStream |
getInputStream()
|
long |
getLastModified()
|
java.net.URL |
getLocalURL()
Converts the URL to a common local URL protocol (i.e file: or jar: protocol) |
Methods inherited from class java.net.URLConnection |
---|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final BundleEntry bundleEntry
protected java.io.InputStream in
protected java.lang.String contentType
Constructor Detail |
---|
public BundleURLConnection(java.net.URL url, BundleEntry bundleEntry)
url
- URL for this URLConnection.bundleEntry
- BundleEntry that the URLConnection is associated.Method Detail |
---|
public void connect() throws java.io.IOException
connect
in class java.net.URLConnection
java.io.IOException
public int getContentLength()
getContentLength
in class java.net.URLConnection
public java.lang.String getContentType()
getContentType
in class java.net.URLConnection
public boolean getDoInput()
getDoInput
in class java.net.URLConnection
public boolean getDoOutput()
getDoOutput
in class java.net.URLConnection
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.URLConnection
java.io.IOException
public long getLastModified()
getLastModified
in class java.net.URLConnection
public java.net.URL getLocalURL()
public java.net.URL getFileURL()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |