Author: tilman
Date: Sun Mar 11 13:49:46 2018
New Revision: 1826443

URL: http://svn.apache.org/viewvc?rev=1826443&view=rev
Log:
PDFBOX-4071: use base class

Modified:
    
pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java

Modified: 
pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
URL: 
http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java?rev=1826443&r1=1826442&r2=1826443&view=diff
==============================================================================
--- 
pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
 (original)
+++ 
pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
 Sun Mar 11 13:49:46 2018
@@ -20,11 +20,10 @@ import java.io.File;
 import java.io.FileInputStream;
 import java.io.FileOutputStream;
 import java.io.IOException;
+import java.io.InputStream;
 import java.io.RandomAccessFile;
-import java.net.URL;
 import java.security.KeyStore;
 import java.security.KeyStoreException;
-import java.security.MessageDigest;
 import java.security.NoSuchAlgorithmException;
 import java.security.UnrecoverableKeyException;
 import java.security.cert.CertificateException;
@@ -85,7 +84,7 @@ public class CreateVisibleSignature exte
      * @throws IOException
      */
     public void setVisibleSignDesigner(String filename, int x, int y, int 
zoomPercent, 
-            FileInputStream imageStream, int page) 
+            InputStream imageStream, int page) 
             throws IOException
     {
         visibleSignDesigner = new PDVisibleSignDesigner(filename, imageStream, 
page);
@@ -99,7 +98,7 @@ public class CreateVisibleSignature exte
      * @param imageStream input stream of an image.
      * @throws IOException
      */
-    public void setVisibleSignDesigner(int zoomPercent, FileInputStream 
imageStream) 
+    public void setVisibleSignDesigner(int zoomPercent, InputStream 
imageStream) 
             throws IOException
     {
         visibleSignDesigner = new PDVisibleSignDesigner(imageStream);
@@ -415,7 +414,7 @@ public class CreateVisibleSignature exte
 
         CreateVisibleSignature signing = new CreateVisibleSignature(keystore, 
pin.clone());
 
-        FileInputStream imageStream = new FileInputStream(args[3]);
+        InputStream imageStream = new FileInputStream(args[3]);
 
         String name = documentFile.getName();
         String substring = name.substring(0, name.lastIndexOf('.'));


Reply via email to