pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1697164 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/
Date Sun, 23 Aug 2015 10:53:28 GMT
Author: msahyoun
Date: Sun Aug 23 10:53:27 2015
New Revision: 1697164

URL: http://svn.apache.org/r1697164
Log:
PDFBOX-2852: harmonize declaration of utility classes

Modified:
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/DecompressObjectstreams.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/OverlayPDF.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFMerger.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFSplit.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PrintPDF.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Version.java

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/DecompressObjectstreams.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/DecompressObjectstreams.java?rev=1697164&r1=1697163&r2=1697164&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/DecompressObjectstreams.java
(original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/DecompressObjectstreams.java
Sun Aug 23 10:53:27 2015
@@ -35,8 +35,15 @@ import org.apache.pdfbox.cos.COSObjectKe
  * objects.
  * @author Adam Nichols
  */
-public class DecompressObjectstreams 
+public final class DecompressObjectstreams 
 {
+    
+    /**
+     * private constructor.
+     */
+    private DecompressObjectstreams()
+    {
+    }
 
     /**
      * This is a very simple program, so everything is in the main method.

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java?rev=1697164&r1=1697163&r2=1697164&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java Sun Aug 23 10:53:27
2015
@@ -34,7 +34,7 @@ import org.apache.pdfbox.pdmodel.encrypt
  *
  * @author  Ben Litchfield
  */
-public class Encrypt
+public final class Encrypt
 {
     private Encrypt()
     {

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java?rev=1697164&r1=1697163&r2=1697164&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java Sun Aug 23
10:53:27 2015
@@ -47,7 +47,7 @@ import org.apache.pdfbox.contentstream.P
  *
  * @author Ben Litchfield
  */
-public class ExtractImages
+public final class ExtractImages
 {
     private static final String PASSWORD = "-password";
     private static final String PREFIX = "-prefix";

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java?rev=1697164&r1=1697163&r2=1697164&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java Sun Aug 23 10:53:27
2015
@@ -39,7 +39,7 @@ import org.apache.pdfbox.text.PDFTextStr
  *
  * @author Ben Litchfield
  */
-public class ExtractText
+public final class ExtractText
 {
     private static final String PASSWORD = "-password";
     private static final String ENCODING = "-encoding";

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/OverlayPDF.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/OverlayPDF.java?rev=1697164&r1=1697163&r2=1697164&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/OverlayPDF.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/OverlayPDF.java Sun Aug 23 10:53:27
2015
@@ -31,7 +31,7 @@ import org.apache.pdfbox.multipdf.Overla
  * Based on code contributed by Balazs Jerk. 
  * 
  */
-public class OverlayPDF 
+public final class OverlayPDF 
 {
     private static final Log LOG = LogFactory.getLog(OverlayPDF.class);
 
@@ -44,6 +44,10 @@ public class OverlayPDF
     private static final String PAGE = "-page";
     private static final String USEALLPAGES = "-useAllPages";
 
+    private OverlayPDF()
+    {
+    }    
+    
     /**
      * This will overlay a document and write out the results.
      *

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java?rev=1697164&r1=1697163&r2=1697164&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java Sun Aug 23 10:53:27
2015
@@ -23,9 +23,13 @@ package org.apache.pdfbox.tools;
  *
  * @see <a href="https://issues.apache.org/jira/browse/PDFBOX-687">PDFBOX-687</a>
  */
-public class PDFBox 
+public final class PDFBox 
 {
 
+    private PDFBox()
+    {
+    }
+    
     /**
      * Main method.
      * 

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFMerger.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFMerger.java?rev=1697164&r1=1697163&r2=1697164&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFMerger.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFMerger.java Sun Aug 23 10:53:27
2015
@@ -26,7 +26,7 @@ import org.apache.pdfbox.multipdf.PDFMer
  *
  * @author Ben Litchfield
  */
-public class PDFMerger
+public final class PDFMerger
 {
     
     private PDFMerger()

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFSplit.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFSplit.java?rev=1697164&r1=1697163&r2=1697164&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFSplit.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFSplit.java Sun Aug 23 10:53:27
2015
@@ -32,7 +32,7 @@ import org.apache.pdfbox.multipdf.Splitt
  *
  * @author Ben Litchfield
  */
-public class PDFSplit
+public final class PDFSplit
 {
     private static final String PASSWORD = "-password";
     private static final String SPLIT = "-split";

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java?rev=1697164&r1=1697163&r2=1697164&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java Sun Aug 23 10:53:27
2015
@@ -36,7 +36,7 @@ import org.apache.pdfbox.tools.imageio.I
  *
  * @author Ben Litchfield
  */
-public class PDFToImage
+public final class PDFToImage
 {
     private static final String PASSWORD = "-password";
     private static final String START_PAGE = "-startPage";

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PrintPDF.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PrintPDF.java?rev=1697164&r1=1697163&r2=1697164&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PrintPDF.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PrintPDF.java Sun Aug 23 10:53:27
2015
@@ -30,7 +30,7 @@ import org.apache.pdfbox.printing.PDFPag
  * 
  * @author Ben Litchfield
  */
-public class PrintPDF
+public final class PrintPDF
 {
     private static final String PASSWORD = "-password";
     private static final String SILENT = "-silentPrint";

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Version.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Version.java?rev=1697164&r1=1697163&r2=1697164&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Version.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Version.java Sun Aug 23 10:53:27
2015
@@ -21,7 +21,7 @@ package org.apache.pdfbox.tools;
  *
  * @author Ben Litchfield
  */
-class Version
+final class Version
 {
     private Version()
     {



Mime
View raw message