Java Doc for PluginArchiver.java in  » Development » Java-Plugin-Framework » org » java » plugin » tools » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Development » Java Plugin Framework » org.java.plugin.tools 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.java.plugin.tools.PluginArchiver

PluginArchiver
final public class PluginArchiver (Code)
Plug-ins archive support class.
version:
   $Id$

Inner Class :public static interface Filter



Method Summary
public static  voidpack(PluginDescriptor descr, PathResolver pathResolver, File destFile)
     Packs given plug-in into single ZIP file.
public static  voidpack(PluginFragment fragment, PathResolver pathResolver, File destFile)
     Packs given plug-in fragment into single ZIP file.
public static  Set<String>pack(PluginRegistry registry, PathResolver pathResolver, File destFile)
     Packs all plug-ins from given registry as one archive file.
public static  Set<String>pack(PluginRegistry registry, PathResolver pathResolver, File destFile, Filter filter)
     Packs plug-ins from given registry as one archive file according to given filter.
public static  Set<String>readDescriptor(URL archiveFile, PluginRegistry registry)
     Reads meta-information from plug-ins archive file and registers found plug-in manifest data with given registry for future analysis.
public static  Set<String>readDescriptor(URL archiveFile, PluginRegistry registry, Filter filter)
     Reads meta-information from plug-ins archive file and registers found plug-in manifest data with given registry for future analysis.
Note:
In the current implementation all plug-in manifests are extracted to temporary local storage and deleted immediately after their registration with plug-in registry.
public static  Set<String>unpack(URL archiveFile, PluginRegistry registry, File destFolder)
     Extracts plug-ins from the given archive file.
public static  Set<String>unpack(URL archiveFile, PluginRegistry registry, File destFolder, Filter filter)
     Extracts plug-ins from the given archive file.
Note:
In the current implementation all plug-in manifests are extracted to temporary local storage and deleted immediately after their registration with plug-in registry.
public static  Set<String>unpack(URL archiveFile, File destFolder)
     Extracts all plug-ins from the given archive file.
public static  Set<String>unpack(URL archiveFile, File destFolder, Filter filter)
     Extracts plug-ins from the given archive file according to given filter.



Method Detail
pack
public static void pack(PluginDescriptor descr, PathResolver pathResolver, File destFile) throws IOException(Code)
Packs given plug-in into single ZIP file. Resulting file may be used to run plug-ins from.
Parameters:
  descr - plug-in descriptor
Parameters:
  pathResolver - path resolver instance
Parameters:
  destFile - target file
throws:
  IOException - if an I/O error has occurred



pack
public static void pack(PluginFragment fragment, PathResolver pathResolver, File destFile) throws IOException(Code)
Packs given plug-in fragment into single ZIP file. Resulting file may be used to run plug-ins from.
Parameters:
  fragment - plug-in fragment descriptor
Parameters:
  pathResolver - path resolver instance
Parameters:
  destFile - target file
throws:
  IOException - if an I/O error has occurred



pack
public static Set<String> pack(PluginRegistry registry, PathResolver pathResolver, File destFile) throws IOException(Code)
Packs all plug-ins from given registry as one archive file.
Parameters:
  registry - plug-ins registry
Parameters:
  pathResolver - path resolver (only local file URLs are supported)
Parameters:
  destFile - target archive file (will be overridden if any exists) set of UID's of all packed plug-ins
throws:
  IOException - if an I/O error has occurred



pack
public static Set<String> pack(PluginRegistry registry, PathResolver pathResolver, File destFile, Filter filter) throws IOException(Code)
Packs plug-ins from given registry as one archive file according to given filter.
Parameters:
  registry - plug-ins registry
Parameters:
  pathResolver - path resolver (only local file URLs are supported)
Parameters:
  destFile - target archive file (will be overridden if any exists)
Parameters:
  filter - filter to be used when packing plug-ins set of UID's of all packed plug-ins
throws:
  IOException - if an I/O error has occurred



readDescriptor
public static Set<String> readDescriptor(URL archiveFile, PluginRegistry registry) throws IOException, ClassNotFoundException, ManifestProcessingException(Code)
Reads meta-information from plug-ins archive file and registers found plug-in manifest data with given registry for future analysis.
Parameters:
  archiveFile - plug-in archive file
Parameters:
  registry - plug-in registry where to register discovered manifestsfor archived plug-ins set of UID's of all registered plug-ins
throws:
  IOException - if an I/O error has occurred
throws:
  ClassNotFoundException - if descriptor can't be read
throws:
  ManifestProcessingException - if manifest can't be registered(optional behavior)
See Also:   PluginArchiver.readDescriptor(URL,PluginRegistry,PluginArchiver.Filter)



readDescriptor
public static Set<String> readDescriptor(URL archiveFile, PluginRegistry registry, Filter filter) throws IOException, ClassNotFoundException, ManifestProcessingException(Code)
Reads meta-information from plug-ins archive file and registers found plug-in manifest data with given registry for future analysis.
Note:
In the current implementation all plug-in manifests are extracted to temporary local storage and deleted immediately after their registration with plug-in registry. So manifest URL's are actually point to "fake" locations and main purpose of this method is to allow you to analyze plug-ins archive without needing to download and unpack it.
Parameters:
  archiveFile - plug-in archive file
Parameters:
  registry - plug-in registry where to register discovered manifestsfor archived plug-ins
Parameters:
  filter - filter to be used when un-packing plug-ins set of UID's of all registered plug-ins
throws:
  IOException - if an I/O error has occurred
throws:
  ClassNotFoundException - if descriptor can't be read
throws:
  ManifestProcessingException - if manifest can't be registered(optional behavior)



unpack
public static Set<String> unpack(URL archiveFile, PluginRegistry registry, File destFolder) throws ManifestProcessingException, IOException, ClassNotFoundException(Code)
Extracts plug-ins from the given archive file.
Parameters:
  archiveFile - plug-in archive file
Parameters:
  registry - plug-in registry where to register manifests forunpacked plug-ins
Parameters:
  destFolder - target folder set of UID's of all un-packed (and registered) plug-ins
throws:
  IOException - if an I/O error has occurred
throws:
  ClassNotFoundException - if descriptor can't be read
throws:
  ManifestProcessingException - if manifest can't be registered(optional behavior)
See Also:   PluginArchiver.unpack(URL,PluginRegistry,File,PluginArchiver.Filter)



unpack
public static Set<String> unpack(URL archiveFile, PluginRegistry registry, File destFolder, Filter filter) throws IOException, ManifestProcessingException, ClassNotFoundException(Code)
Extracts plug-ins from the given archive file.
Note:
In the current implementation all plug-in manifests are extracted to temporary local storage and deleted immediately after their registration with plug-in registry. So manifest URL's are actually point to "fake" locations.
Parameters:
  archiveFile - plug-in archive file
Parameters:
  registry - plug-in registry where to register manifests forunpacked plug-ins
Parameters:
  destFolder - target folder
Parameters:
  filter - filter to be used when un-packing plug-ins set of UID's of all un-packed (and registered) plug-ins
throws:
  ClassNotFoundException - if plug-ins archive descriptor can't bede-serialized
throws:
  ManifestProcessingException - if plug-in manifests can't beregistered
throws:
  IOException - if archive damaged or I/O error has occurred



unpack
public static Set<String> unpack(URL archiveFile, File destFolder) throws ManifestProcessingException, IOException, ClassNotFoundException(Code)
Extracts all plug-ins from the given archive file.
Note:
ObjectFactory.createRegistry Standard plug-in registry implementation will be used internally to read plug-in manifests.
Parameters:
  archiveFile - plug-in archive file
Parameters:
  destFolder - target folder set of UID's of all un-packed plug-ins
throws:
  IOException - if an I/O error has occurred
throws:
  ClassNotFoundException - if descriptor can't be read
throws:
  ManifestProcessingException - if manifest can't be registered(optional behavior)
See Also:   ObjectFactory.createRegistry



unpack
public static Set<String> unpack(URL archiveFile, File destFolder, Filter filter) throws ManifestProcessingException, IOException, ClassNotFoundException(Code)
Extracts plug-ins from the given archive file according to given filter.
Note:
ObjectFactory.createRegistry Standard plug-in registry implementation will be used internally to read plug-in manifests.
Parameters:
  archiveFile - plug-in archive file
Parameters:
  destFolder - target folder
Parameters:
  filter - filter to be used when un-packing plug-ins set of UID's of all un-packed plug-ins
throws:
  IOException - if an I/O error has occurred
throws:
  ClassNotFoundException - if descriptor can't be read
throws:
  ManifestProcessingException - if manifest can't be registered(optional behavior)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.