pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1688019 - in /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox: cos/COSStream.java io/RandomAccessFileInputStream.java io/RandomAccessReadInputStream.java pdmodel/PDDocument.java
Date Sun, 28 Jun 2015 14:54:43 GMT
Author: lehmi
Date: Sun Jun 28 14:54:42 2015
New Revision: 1688019

URL: http://svn.apache.org/r1688019
Log:
PDFBOX-2716: rename RandomAccessFileInputStream to RandomAccessReadInputStream

Added:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/RandomAccessReadInputStream.java
      - copied, changed from r1688018, pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/RandomAccessFileInputStream.java
Removed:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/RandomAccessFileInputStream.java
Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java?rev=1688019&r1=1688018&r2=1688019&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java Sun Jun 28 14:54:42
2015
@@ -31,7 +31,7 @@ import org.apache.pdfbox.filter.FilterFa
 import org.apache.pdfbox.io.IOUtils;
 import org.apache.pdfbox.io.RandomAccess;
 import org.apache.pdfbox.io.RandomAccessBuffer;
-import org.apache.pdfbox.io.RandomAccessFileInputStream;
+import org.apache.pdfbox.io.RandomAccessReadInputStream;
 import org.apache.pdfbox.io.RandomAccessFileOutputStream;
 import org.apache.pdfbox.io.RandomAccessRead;
 import org.apache.pdfbox.io.RandomAccessReadWrapper;
@@ -139,7 +139,7 @@ public class COSStream extends COSDictio
             long position = filteredStream.getPosition();
             long length = filteredStream.getLengthWritten();
             retval = new BufferedInputStream(
-                    new RandomAccessFileInputStream( getFilteredBuffer(), position, length
), BUFFER_SIZE );
+                    new RandomAccessReadInputStream( getFilteredBuffer(), position, length
), BUFFER_SIZE );
         }
         else
         {
@@ -218,7 +218,7 @@ public class COSStream extends COSDictio
             long position = unFilteredStream.getPosition();
             long length = unFilteredStream.getLengthWritten();
             retval = new BufferedInputStream(
-                    new RandomAccessFileInputStream( getUnfilteredBuffer(), position, length
), BUFFER_SIZE );
+                    new RandomAccessReadInputStream( getUnfilteredBuffer(), position, length
), BUFFER_SIZE );
         }
         else
         {
@@ -408,7 +408,7 @@ public class COSStream extends COSDictio
         try
         {
             input = new BufferedInputStream(
-                    new RandomAccessFileInputStream(tempBuffer, 0, tempBuffer.length()),
BUFFER_SIZE);
+                    new RandomAccessReadInputStream(tempBuffer, 0, tempBuffer.length()),
BUFFER_SIZE);
             IOUtils.closeQuietly(unFilteredStream);
             if (destBuffer == null)
             {
@@ -480,7 +480,7 @@ public class COSStream extends COSDictio
         Filter filter = FilterFactory.INSTANCE.getFilter( filterName );
 
         InputStream input = new BufferedInputStream(
-            new RandomAccessFileInputStream( tempBuffer, 0, tempBuffer.length()), BUFFER_SIZE
);
+            new RandomAccessReadInputStream( tempBuffer, 0, tempBuffer.length()), BUFFER_SIZE
);
         IOUtils.closeQuietly(filteredStream);
         if (destBuffer == null)
         {

Copied: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/RandomAccessReadInputStream.java
(from r1688018, pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/RandomAccessFileInputStream.java)
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/RandomAccessReadInputStream.java?p2=pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/RandomAccessReadInputStream.java&p1=pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/RandomAccessFileInputStream.java&r1=1688018&r2=1688019&rev=1688019&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/RandomAccessFileInputStream.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/RandomAccessReadInputStream.java
Sun Jun 28 14:54:42 2015
@@ -25,7 +25,7 @@ import java.io.IOException;
  *
  * @author Ben Litchfield
  */
-public class RandomAccessFileInputStream extends InputStream
+public class RandomAccessReadInputStream extends InputStream
 {
     private final RandomAccessRead input;
     private long currentPosition;
@@ -38,7 +38,7 @@ public class RandomAccessFileInputStream
      * @param startPosition The position in the file that this stream starts.
      * @param length The length of the input stream.
      */
-    public RandomAccessFileInputStream( RandomAccessRead randomAccessRead, long startPosition,
long length )
+    public RandomAccessReadInputStream( RandomAccessRead randomAccessRead, long startPosition,
long length )
     {
         input = randomAccessRead;
         currentPosition = startPosition;

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1688019&r1=1688018&r2=1688019&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Sun Jun 28
14:54:42 2015
@@ -41,7 +41,7 @@ import org.apache.pdfbox.cos.COSStream;
 import org.apache.pdfbox.io.IOUtils;
 import org.apache.pdfbox.io.RandomAccessBuffer;
 import org.apache.pdfbox.io.RandomAccessBufferedFileInputStream;
-import org.apache.pdfbox.io.RandomAccessFileInputStream;
+import org.apache.pdfbox.io.RandomAccessReadInputStream;
 import org.apache.pdfbox.io.RandomAccessRead;
 import org.apache.pdfbox.pdfparser.PDFParser;
 import org.apache.pdfbox.pdfwriter.COSWriter;
@@ -1093,7 +1093,7 @@ public class PDDocument implements Close
     public void saveIncremental(OutputStream output) throws IOException
     {
         InputStream input = new BufferedInputStream(
-                new RandomAccessFileInputStream(pdfSource, 0, pdfSource.length()));
+                new RandomAccessReadInputStream(pdfSource, 0, pdfSource.length()));
         COSWriter writer = null;
         try
         {



Mime
View raw message