|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.update.core.ContentReference
org.eclipse.update.core.JarEntryContentReference
.jar file entry content reference.
This class may be instantiated or subclassed by clients.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
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, getLastModified, getPermission, setLastModified, 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 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 Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.