|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.eclipse.update.core.ContentReference
|
+--org.eclipse.update.core.JarEntryContentReference
.jar file entry content reference.
This class may be instantiated or subclassed by clients.
ContentReference,
JarContentReference| Field Summary |
| Fields inherited from class org.eclipse.update.core.ContentReference |
DEFAULT_EXECUTABLE_PERMISSION, UNKNOWN_SIZE |
| Constructor Summary | |
JarEntryContentReference(String id,
JarContentReference jarContentReference,
JarEntry entry)
Create jar entry content reference. |
|
| Method Summary | |
URL |
asURL()
Returns the content reference as a URL. |
long |
getInputSize()
Returns the size of the referenced entry. |
InputStream |
getInputStream()
Creates an input stream for the reference. |
boolean |
isLocalReference()
Indicates whether the reference is to a an entry within a local jar. |
String |
toString()
Return string representation of this reference. |
| Methods inherited from class org.eclipse.update.core.ContentReference |
asFile, createContentReference, getIdentifier, getPermission, setPermission, setTempLocal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JarEntryContentReference(String id,
JarContentReference jarContentReference,
JarEntry entry)
id - "symbolic" path identifierjarContentReference - jar file content referenceentry - jar entry| Method Detail |
public InputStream getInputStream()
throws IOException
getInputStream in class ContentReferenceIOException - unable to create streampublic long getInputSize()
getInputSize in class ContentReferencepublic boolean isLocalReference()
isLocalReference in class ContentReferencetrue if the reference is local,
otherwise false
public URL asURL()
throws IOException
asURL in class ContentReferenceIOException - reference cannot be returned as URLpublic String toString()
toString in class ContentReference
|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||