incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r577284 - /incubator/sling/trunk/obr/src/main/java/org/apache/sling/obr/Resource.java
Date Wed, 19 Sep 2007 12:32:46 GMT
Author: cziegeler
Date: Wed Sep 19 05:32:45 2007
New Revision: 577284

URL: http://svn.apache.org/viewvc?rev=577284&view=rev
Log:
Make Resource class public in order to make it usable as an utility class.

Modified:
    incubator/sling/trunk/obr/src/main/java/org/apache/sling/obr/Resource.java

Modified: incubator/sling/trunk/obr/src/main/java/org/apache/sling/obr/Resource.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/obr/src/main/java/org/apache/sling/obr/Resource.java?rev=577284&r1=577283&r2=577284&view=diff
==============================================================================
--- incubator/sling/trunk/obr/src/main/java/org/apache/sling/obr/Resource.java (original)
+++ incubator/sling/trunk/obr/src/main/java/org/apache/sling/obr/Resource.java Wed Sep 19
05:32:45 2007
@@ -80,11 +80,11 @@
 
     private BundleSpec[] bundleSpecs;
 
-    static Resource create(File file) throws IOException {
+    public static Resource create(File file) throws IOException {
         return create(file.toURL());
     }
 
-    static Resource create(URL file) throws IOException {
+    public static Resource create(URL file) throws IOException {
         JarInputStream jar = null;
         try {
             URLConnection conn = file.openConnection();
@@ -162,7 +162,7 @@
         this.addToMapList(this.capabilities, capability.getName(), capability);
     }
 
-    Iterator getCapabilities() {
+    public Iterator getCapabilities() {
         return this.getMapListIterator(this.capabilities);
     }
 
@@ -170,50 +170,50 @@
         this.addToMapList(this.requirements, requirement.getName(), requirement);
     }
 
-    Iterator getRequirements() {
+    public Iterator getRequirements() {
         return this.getMapListIterator(this.requirements);
     }
 
-    SortedSet getCategories() {
+    public SortedSet getCategories() {
         return this.categories;
     }
 
-    BundleSpec[] getBundleSpecs() {
+    public BundleSpec[] getBundleSpecs() {
         return this.bundleSpecs;
     }
 
     /**
      * @return the contact
      */
-    String getContact() {
+    public String getContact() {
         return this.contact;
     }
 
     /**
      * @return the copyright
      */
-    String getCopyright() {
+    public String getCopyright() {
         return this.copyright;
     }
 
     /**
      * @return the description
      */
-    String getDescription() {
+    public String getDescription() {
         return this.description;
     }
 
     /**
      * @return the documentation
      */
-    String getDocumentation() {
+    public String getDocumentation() {
         return this.documentation;
     }
 
     /**
      * @return the id
      */
-    String getId() {
+    public String getId() {
         return this.id;
     }
 
@@ -228,42 +228,42 @@
     /**
      * @return the license
      */
-    String getLicense() {
+    public String getLicense() {
         return this.license;
     }
 
     /**
      * @return the presentationName
      */
-    String getPresentationName() {
+    public String getPresentationName() {
         return this.presentationName;
     }
 
     /**
      * @return the size
      */
-    long getSize() {
+    public long getSize() {
         return this.size;
     }
 
     /**
      * @return the source
      */
-    String getSource() {
+    public String getSource() {
         return this.source;
     }
 
     /**
      * @return the symbolicName
      */
-    String getSymbolicName() {
+    public String getSymbolicName() {
         return this.symbolicName;
     }
 
     /**
      * @return the uri
      */
-    String getUri() {
+    public String getUri() {
         return this.uri;
     }
 
@@ -278,28 +278,28 @@
     /**
      * @return the vendor
      */
-    String getVendor() {
+    public String getVendor() {
         return this.vendor;
     }
 
     /**
      * @return the version
      */
-    String getVersion() {
+    public String getVersion() {
         return this.version;
     }
 
     /**
      * @return the URL location of the bundle file
      */
-    URL getResourceURL() {
+    public URL getResourceURL() {
         return this.resourceURL;
     }
 
     /**
      * @return the name part of the bundle file URL location
      */
-    String getResourceName() {
+    public String getResourceName() {
      return this.name;
     }
 
@@ -307,7 +307,7 @@
      * Returns an <code>InputStream</code> on the resource bundle file
      * @throws IOException If an error occurrs opening the stream.
      */
-    void spool(OutputStream out) throws IOException {
+    public void spool(OutputStream out) throws IOException {
         URLConnection conn = this.getResourceURL().openConnection();
         InputStream ins = null;
         try {



Mime
View raw message