|
Eclipse Platform 2.0 |
||||||||||
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 |
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 |
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 entryMethod Detail |
public InputStream getInputStream() throws IOException
getInputStream
in class ContentReference
IOException
- unable to create streampublic long getInputSize()
getInputSize
in class ContentReference
public boolean isLocalReference()
isLocalReference
in class ContentReference
true
if the reference is local,
otherwise false
public URL asURL() throws IOException
asURL
in class ContentReference
IOException
- reference cannot be returned as URLpublic String toString()
toString
in class ContentReference
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |