[exo-jcr-commits] exo-jcr SVN: r1863 - in core/trunk/exo.core.component.document/src/main/java/org/exoplatform/services/document: impl and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Feb 17 08:40:27 EST 2010


Author: areshetnyak
Date: 2010-02-17 08:40:26 -0500 (Wed, 17 Feb 2010)
New Revision: 1863

Removed:
   core/trunk/exo.core.component.document/src/main/java/org/exoplatform/services/document/PDFDocumentReadException.java
Modified:
   core/trunk/exo.core.component.document/src/main/java/org/exoplatform/services/document/impl/PDFDocumentReader.java
Log:
EXOJCR-422 :  The use DocumentReadException in PDFDocumentReader. PDFDocumentReadException was removed.

Deleted: core/trunk/exo.core.component.document/src/main/java/org/exoplatform/services/document/PDFDocumentReadException.java
===================================================================
--- core/trunk/exo.core.component.document/src/main/java/org/exoplatform/services/document/PDFDocumentReadException.java	2010-02-17 13:03:49 UTC (rev 1862)
+++ core/trunk/exo.core.component.document/src/main/java/org/exoplatform/services/document/PDFDocumentReadException.java	2010-02-17 13:40:26 UTC (rev 1863)
@@ -1,44 +0,0 @@
-/*
- * Copyright (C) 2003-2010 eXo Platform SAS.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Affero General Public License
- * as published by the Free Software Foundation; either version 3
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see<http://www.gnu.org/licenses/>.
- */
-package org.exoplatform.services.document;
-
-import java.io.IOException;
-
-/**
- * Created by The eXo Platform SAS.
- * 
- * <br/>Date: 2010
- *
- * @author <a href="mailto:alex.reshetnyak at exoplatform.com.ua">Alex Reshetnyak</a> 
- * @version $Id: PDFDocumentReaderException.java 111 2010-11-11 11:11:11Z rainf0x $
- */
-public class PDFDocumentReadException
-   extends DocumentReadException
-{
-
-   /**
-    * Constructor.
-    * 
-    * @param message
-    *          String, the message of exception 
-    * @param cause
-    *          the cause of exception.
-    */
-   public PDFDocumentReadException(String message, Throwable cause) {
-      super(message, cause);
-  }
-}
\ No newline at end of file

Modified: core/trunk/exo.core.component.document/src/main/java/org/exoplatform/services/document/impl/PDFDocumentReader.java
===================================================================
--- core/trunk/exo.core.component.document/src/main/java/org/exoplatform/services/document/impl/PDFDocumentReader.java	2010-02-17 13:03:49 UTC (rev 1862)
+++ core/trunk/exo.core.component.document/src/main/java/org/exoplatform/services/document/impl/PDFDocumentReader.java	2010-02-17 13:40:26 UTC (rev 1863)
@@ -24,7 +24,6 @@
 import org.exoplatform.commons.utils.ISO8601;
 import org.exoplatform.services.document.DCMetaData;
 import org.exoplatform.services.document.DocumentReadException;
-import org.exoplatform.services.document.PDFDocumentReadException;
 import org.exoplatform.services.log.ExoLogger;
 import org.exoplatform.services.log.Log;
 import org.pdfbox.pdmodel.PDDocument;
@@ -94,7 +93,7 @@
          }
          catch (IOException e)
          {
-            throw new PDFDocumentReadException("Can not load PDF documet.", e);
+            throw new DocumentReadException("Can not load PDF document.", e);
          }
 
          PDFTextStripper stripper = new PDFTextStripper();



More information about the exo-jcr-commits mailing list