[Yanel-commits] rev 44116 - public/yanel/trunk/src/resources/odt/src/java/org/wyona/yanel/impl/resources

michi at wyona.com michi at wyona.com
Tue Aug 11 11:02:46 CEST 2009


Author: michi
Date: 2009-08-11 11:02:46 +0200 (Tue, 11 Aug 2009)
New Revision: 44116

Modified:
   public/yanel/trunk/src/resources/odt/src/java/org/wyona/yanel/impl/resources/ODTResource.java
Log:
obsolete methods removed

Modified: public/yanel/trunk/src/resources/odt/src/java/org/wyona/yanel/impl/resources/ODTResource.java
===================================================================
--- public/yanel/trunk/src/resources/odt/src/java/org/wyona/yanel/impl/resources/ODTResource.java	2009-08-11 09:00:42 UTC (rev 44115)
+++ public/yanel/trunk/src/resources/odt/src/java/org/wyona/yanel/impl/resources/ODTResource.java	2009-08-11 09:02:46 UTC (rev 44116)
@@ -46,7 +46,7 @@
 import org.apache.log4j.Category;
 
 /**
- * 
+ * ODT resource which allows to see XML or XHTML version of ODT (see examples at http://127.0.0.1:8080/yanel/test/use-cases/)
  */
 public class ODTResource extends Resource implements ViewableV2, ModifiableV2 {
 
@@ -156,20 +156,6 @@
     /**
      * 
      */
-    public Reader getReader(Path path) {
-        try {
-            RepoPath rp = new org.wyona.yarep.util.YarepUtil().getRepositoryPath(new org.wyona.yarep.core.Path(path.toString()),
-                    getRepositoryFactory());
-            return rp.getRepo().getReader(new org.wyona.yarep.core.Path(rp.getPath().toString()));
-        } catch (Exception e) {
-            log.error(e);
-        }
-        return null;
-    }
-
-    /**
-     * 
-     */
     public Reader getReader(Topic topic) {
         log.error("Not implemented yet!");
         return null;
@@ -194,25 +180,6 @@
     /**
      * 
      */
-    public OutputStream getOutputStream(Path path) {
-        try {
-            RepoPath rp = new org.wyona.yarep.util.YarepUtil().getRepositoryPath(new org.wyona.yarep.core.Path(path.toString()),
-                    getRepositoryFactory());
-            return rp.getRepo().getOutputStream(new org.wyona.yarep.core.Path(rp.getPath()
-                    .toString()));
-        } catch (Exception e) {
-            log.error(e);
-        }
-        return null;
-    }
-
-    protected RepositoryFactory getRepositoryFactory() {
-        return yanel.getRepositoryFactory(org.wyona.yanel.core.map.Realm.DEFAULT_REPOSITORY_FACTORY_BEAN_ID);
-    }
-
-    /**
-     * 
-     */
     public InputStream getInputStream() throws Exception {
         return getRealm().getRepository().getNode(getPath()).getInputStream();
     }



More information about the Yanel-commits mailing list