pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1652289 - in /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel: graphics/image/PDImage.java interactive/digitalsignature/SignatureInterface.java interactive/digitalsignature/visible/PDFTemplateBuilder.java
Date Thu, 15 Jan 2015 22:20:11 GMT
Author: tilman
Date: Thu Jan 15 22:20:11 2015
New Revision: 1652289

URL: http://svn.apache.org/r1652289
Log:
PDFBOX-2576: methods in interface are always public

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImage.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureInterface.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateBuilder.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImage.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImage.java?rev=1652289&r1=1652288&r2=1652289&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImage.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImage.java
Thu Jan 15 22:20:11 2015
@@ -37,7 +37,7 @@ public interface PDImage extends COSObje
      * @return content of this image as a buffered image.
      * @throws IOException
      */
-    public BufferedImage getImage() throws IOException;
+    BufferedImage getImage() throws IOException;
 
     /**
      * Returns an ARGB image filled with the given paint and using this image as a mask.
@@ -46,95 +46,95 @@ public interface PDImage extends COSObje
      * @throws IOException if the image cannot be read
      * @throws IllegalStateException if the image is not a stencil.
      */
-    public BufferedImage getStencilImage(Paint paint) throws IOException;
+    BufferedImage getStencilImage(Paint paint) throws IOException;
 
     /**
      * Returns a stream containing this image's data.
      * @throws IOException if the
      */
-    public PDStream getStream() throws IOException;
+    PDStream getStream() throws IOException;
 
     /**
      * Returns true if the image is a stencil mask.
      */
-    public boolean isStencil();
+    boolean isStencil();
 
     /**
      * Sets whether or not the image is a stencil.
      * This corresponds to the {@code ImageMask} entry in the image stream's dictionary.
      * @param isStencil True to make the image a stencil.
      */
-    public void setStencil(boolean isStencil);
+    void setStencil(boolean isStencil);
 
     /**
      * Returns bits per component of this image, or -1 if one has not been set.
      */
-    public int getBitsPerComponent();
+    int getBitsPerComponent();
 
     /**
      * Set the number of bits per component.
      * @param bitsPerComponent The number of bits per component.
      */
-    public void setBitsPerComponent(int bitsPerComponent);
+    void setBitsPerComponent(int bitsPerComponent);
 
     /**
      * Returns the image's color space.
      * @throws IOException If there is an error getting the color space.
      */
-    public PDColorSpace getColorSpace() throws IOException;
+    PDColorSpace getColorSpace() throws IOException;
 
     /**
      * Sets the color space for this image.
      * @param colorSpace The color space for this image.
      */
-    public void setColorSpace(PDColorSpace colorSpace);
+    void setColorSpace(PDColorSpace colorSpace);
 
     /**
      * Returns height of this image, or -1 if one has not been set.
      */
-    public int getHeight();
+    int getHeight();
 
     /**
      * Sets the height of the image.
      * @param height The height of the image.
      */
-    public void setHeight(int height);
+    void setHeight(int height);
 
     /**
      * Returns the width of this image, or -1 if one has not been set.
      */
-    public int getWidth();
+    int getWidth();
 
     /**
      * Sets the width of the image.
      * @param width The width of the image.
      */
-    public void setWidth(int width);
+    void setWidth(int width);
 
     /**
      * Sets the decode array.
      * @param decode  the new decode array.
      */
-    public void setDecode(COSArray decode);
+    void setDecode(COSArray decode);
 
     /**
      * Returns the decode array.
      */
-    public COSArray getDecode();
+    COSArray getDecode();
 
     /**
      * Returns true if the image should be interpolated when rendered.
      */
-    public boolean getInterpolate();
+    boolean getInterpolate();
 
 
     /**
      * Sets the Interpolate flag, true for high-quality image scaling.
      */
-    public void setInterpolate(boolean value);
+    void setInterpolate(boolean value);
 
     /**
      * Returns the suffix for this image type, e.g. "jpg"
      */
-    public String getSuffix();
+    String getSuffix();
 }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureInterface.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureInterface.java?rev=1652289&r1=1652288&r2=1652289&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureInterface.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureInterface.java
Thu Jan 15 22:20:11 2015
@@ -32,5 +32,5 @@ public interface SignatureInterface
      * @param content is the content as a (Filter)InputStream
      * @return signature as a byte array
      */
-    public byte[] sign (InputStream content) throws IOException;
+    byte[] sign (InputStream content) throws IOException;
 }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateBuilder.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateBuilder.java?rev=1652289&r1=1652288&r2=1652289&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateBuilder.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDFTemplateBuilder.java
Thu Jan 15 22:20:11 2015
@@ -42,14 +42,14 @@ public interface PDFTemplateBuilder
      * In order to create Affine Transform, using parameters.
      * @param params
      */
-    public void createAffineTransform(byte[] params);
+    void createAffineTransform(byte[] params);
 
     /**
      * Creates specified size page.
      * 
      * @param properties
      */
-    public void createPage(PDVisibleSignDesigner properties);
+    void createPage(PDVisibleSignDesigner properties);
 
     /**
      * Creates template using page.
@@ -57,14 +57,14 @@ public interface PDFTemplateBuilder
      * @param page
      * @throws IOException
      */
-    public void createTemplate(PDPage page) throws IOException;
+    void createTemplate(PDPage page) throws IOException;
 
     /**
      * Creates Acro forms in the template.
      * 
      * @param template
      */
-    public void createAcroForm(PDDocument template);
+    void createAcroForm(PDDocument template);
 
     /**
      * Creates signature fields.
@@ -72,7 +72,7 @@ public interface PDFTemplateBuilder
      * @param acroForm
      * @throws IOException
      */
-    public void createSignatureField(PDAcroForm acroForm) throws IOException;
+    void createSignatureField(PDAcroForm acroForm) throws IOException;
 
     /**
      * Creates PDSignatureField.
@@ -82,7 +82,7 @@ public interface PDFTemplateBuilder
      * @param signatureName
      * @throws IOException
      */
-    public void createSignature(PDSignatureField pdSignatureField, PDPage page, String signatureName)
+    void createSignature(PDSignatureField pdSignatureField, PDPage page, String signatureName)
             throws IOException;
 
     /**
@@ -92,7 +92,7 @@ public interface PDFTemplateBuilder
      * @param signatureField
      * @throws IOException
      */
-    public void createAcroFormDictionary(PDAcroForm acroForm, PDSignatureField signatureField)
+    void createAcroFormDictionary(PDAcroForm acroForm, PDSignatureField signatureField)
             throws IOException;
 
     /**
@@ -102,13 +102,13 @@ public interface PDFTemplateBuilder
      * @param properties
      * @throws IOException
      */
-    public void createSignatureRectangle(PDSignatureField signatureField,
+    void createSignatureRectangle(PDSignatureField signatureField,
             PDVisibleSignDesigner properties) throws IOException;
 
     /**
      * Creates procSetArray of PDF,Text,ImageB,ImageC,ImageI.
      */
-    public void createProcSetArray();
+    void createProcSetArray();
 
     /**
      * Creates signature image.
@@ -116,24 +116,24 @@ public interface PDFTemplateBuilder
      * @param image
      * @throws IOException
      */
-    public void createSignatureImage(PDDocument template, BufferedImage image) throws IOException;
+    void createSignatureImage(PDDocument template, BufferedImage image) throws IOException;
 
     /**
      * 
      * @param params
      */
-    public void createFormaterRectangle(byte[] params);
+    void createFormaterRectangle(byte[] params);
 
     /**
      * 
      * @param template
      */
-    public void createHolderFormStream(PDDocument template);
+    void createHolderFormStream(PDDocument template);
 
     /**
      * Creates resources of form
      */
-    public void createHolderFormResources();
+    void createHolderFormResources();
 
     /**
      * Creates Form
@@ -142,7 +142,7 @@ public interface PDFTemplateBuilder
      * @param holderFormStream
      * @param formrect
      */
-    public void createHolderForm(PDResources holderFormResources, PDStream holderFormStream,
+    void createHolderForm(PDResources holderFormResources, PDStream holderFormStream,
             PDRectangle formrect);
 
     /**
@@ -152,19 +152,19 @@ public interface PDFTemplateBuilder
      * @param signatureField
      * @throws IOException
      */
-    public void createAppearanceDictionary(PDFormXObject holderForml,
+    void createAppearanceDictionary(PDFormXObject holderForml,
             PDSignatureField signatureField) throws IOException;
 
     /**
      * 
      * @param template
      */
-    public void createInnerFormStream(PDDocument template);
+    void createInnerFormStream(PDDocument template);
 
     /**
      * Creates InnerForm
      */
-    public void createInnerFormResource();
+    void createInnerFormResource();
 
     /**
      * 
@@ -172,7 +172,7 @@ public interface PDFTemplateBuilder
      * @param innerFormStream
      * @param formrect
      */
-    public void createInnerForm(PDResources innerFormResources, PDStream innerFormStream,
+    void createInnerForm(PDResources innerFormResources, PDStream innerFormStream,
             PDRectangle formrect);
 
     /**
@@ -180,19 +180,19 @@ public interface PDFTemplateBuilder
      * @param innerForm
      * @param holderFormResources
      */
-    public void insertInnerFormToHolerResources(PDFormXObject innerForm,
+    void insertInnerFormToHolerResources(PDFormXObject innerForm,
             PDResources holderFormResources);
 
     /**
      * 
      * @param template
      */
-    public void createImageFormStream(PDDocument template);
+    void createImageFormStream(PDDocument template);
 
     /**
      * Create resource of image form
      */
-    public void createImageFormResources();
+    void createImageFormResources();
 
     /**
      * Creates Image form
@@ -205,7 +205,7 @@ public interface PDFTemplateBuilder
      * @param img
      * @throws IOException
      */
-    public void createImageForm(PDResources imageFormResources, PDResources innerFormResource,
+    void createImageForm(PDResources imageFormResources, PDResources innerFormResource,
             PDStream imageFormStream, PDRectangle formrect, AffineTransform affineTransform,
             PDImageXObject img) throws IOException;
 
@@ -219,7 +219,7 @@ public interface PDFTemplateBuilder
      * @param holderFormResources
      * @param procSet
      */
-    public void injectProcSetArray(PDFormXObject innerForm, PDPage page,
+    void injectProcSetArray(PDFormXObject innerForm, PDPage page,
             PDResources innerFormResources, PDResources imageFormResources,
             PDResources holderFormResources, COSArray procSet);
 
@@ -235,7 +235,7 @@ public interface PDFTemplateBuilder
      * @param properties
      * @throws IOException
      */
-    public void injectAppearanceStreams(PDStream holderFormStream, PDStream innterFormStream,
+    void injectAppearanceStreams(PDStream holderFormStream, PDStream innterFormStream,
             PDStream imageFormStream, COSName imageObjectName, COSName imageName,
             COSName innerFormName, PDVisibleSignDesigner properties) throws IOException;
 
@@ -244,7 +244,7 @@ public interface PDFTemplateBuilder
      * 
      * @param template
      */
-    public void createVisualSignature(PDDocument template);
+    void createVisualSignature(PDDocument template);
 
     /**
      * adds Widget Dictionary
@@ -253,14 +253,14 @@ public interface PDFTemplateBuilder
      * @param holderFormResources
      * @throws IOException
      */
-    public void createWidgetDictionary(PDSignatureField signatureField,
+    void createWidgetDictionary(PDSignatureField signatureField,
             PDResources holderFormResources) throws IOException;
 
     /**
      * 
      * @return - PDF template Structure
      */
-    public PDFTemplateStructure getStructure();
+    PDFTemplateStructure getStructure();
 
     /**
      * Closes template
@@ -268,5 +268,5 @@ public interface PDFTemplateBuilder
      * @param template
      * @throws IOException
      */
-    public void closeTemplate(PDDocument template) throws IOException;
+    void closeTemplate(PDDocument template) throws IOException;
 }



Mime
View raw message