|
 |
|
|
org.eclipse.update.core
Class JarContentReference
java.lang.Object
org.eclipse.update.core.ContentReference
org.eclipse.update.core.JarContentReference
Deprecated. The org.eclipse.update component has been replaced by Equinox p2. This
provisional API was never promoted to stable API, and may be removed from a future release of the platform.
-
public class JarContentReference
- extends
ContentReference
Local .jar file 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.
-
Since:
- 2.0
-
See Also:
-
ContentReference ,
JarEntryContentReference
Methods inherited from class org.eclipse.update.core.
ContentReference
|
asFile,
asURL,
getIdentifier,
getInputSize,
getInputStream,
getLastModified,
getPermission,
isLocalReference,
setLastModified,
setPermission,
setTempLocal,
toString
|
JarContentReference
public JarContentReference(
String id,
URL url)
-
Deprecated.
- Create jar content reference from URL.
-
Parameters:
-
id - "symbolic" path identifier -
url - actual referenced URL -
Since:
- 2.0
JarContentReference
public JarContentReference(
String id,
File file)
-
Deprecated.
- Create jar content reference from file.
-
Parameters:
-
id - "symbolic" path identifier -
file - actual referenced file -
Since:
- 2.0
JarContentReference
public JarContentReference(
String id,
File file,
boolean b)
-
Deprecated.
- Constructor JarContentReference.
-
Parameters:
-
id - -
file - -
b -
createContentReference
public
ContentReference createContentReference(
String id,
File file)
-
Deprecated.
- A factory method to create a jar content reference.
-
-
Overrides:
-
createContentReference
in class
ContentReference
-
-
Parameters:
-
id - "symbolic" path identifier -
file - actual referenced file
-
Returns:
- jar content reference
-
Since:
- 2.0
asJarFile
protected
JarFile asJarFile()
throws
IOException
-
Deprecated.
- Returns the content reference as a jar file. Note, that this method
does not cause the file to be downloaded if it
is not already local.
-
-
Returns:
- reference as jar file
-
Throws:
-
IOException
- reference cannot be returned as jar file -
Since:
- 2.0
unpack
public
ContentReference[] unpack(
File dir,
JarContentReference.ContentSelector selector,
InstallMonitor monitor)
throws
IOException,
InstallAbortedException
-
Deprecated.
- Unpacks the referenced jar archive into the specified location.
Returns content references to the unpacked files.
-
-
Parameters:
-
dir - location to unpack the jar into -
selector - selector, used to select entries to unpack, and to define
"symbolic" path identifiers for the entries. -
monitor - progress monitor
-
Throws:
-
IOException
-
InstallAbortedException
-
Since:
- 2.0
unpack
public
ContentReference unpack(
File dir,
String entryName,
JarContentReference.ContentSelector selector,
InstallMonitor monitor)
throws
IOException,
InstallAbortedException
-
Deprecated.
- Unpacks the named jar entry into the specified location.
Returns content reference to the unpacked file.
-
-
Parameters:
-
dir - location to unpack the jar into -
entryName - name of the jar entry -
selector - selector, used to define "symbolic" path identifier
for the entry -
monitor - progress monitor
-
Throws:
-
IOException
-
InstallAbortedException
-
Since:
- 2.0
peek
public
ContentReference[] peek(
JarContentReference.ContentSelector selector,
InstallMonitor monitor)
throws
IOException
-
Deprecated.
- Peeks into the referenced jar archive.
Returns content references to the jar entries within the jar file.
-
-
Parameters:
-
selector - selector, used to select entries to return, and to define
"symbolic" path identifiers for the entries. -
monitor - progress monitor
-
Throws:
-
IOException
-
Since:
- 2.0
peek
public
ContentReference peek(
String entryName,
JarContentReference.ContentSelector selector,
InstallMonitor monitor)
throws
IOException
-
Deprecated.
- Peeks into the referenced jar archive looking for the named entry.
Returns content reference to the jar entry within the jar file.
-
-
Parameters:
-
entryName - name of the jar entry -
selector - selector, used to define "symbolic" path identifier
for the entry -
monitor - progress monitor
-
Returns:
- the content reference ofr
null if the entry doesn't exist
Throws:
IOException
Since:
- 2.0
closeArchive
public void closeArchive()
throws
IOException
-
Deprecated.
- Closes the jar archive corresponding to this reference.
-
-
Throws:
-
IOException
-
Since:
- 2.0
shutdown
public static void shutdown()
-
Deprecated.
- Perform shutdown processing for jar archive handling.
This method is called when platform is shutting down.
It is not intended to be called at any other time under
normal circumstances. A side-effect of calling this method
is that all jars referenced by JarContentReferences are closed.
-
-
Since:
- 2.0
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.
|
|
|