"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pdfbox/src/main/java/org/apache/pdfbox/io/RandomAccessBuffer.java" between
pdfbox-2.0.23-src.zip and pdfbox-2.0.24-src.zip

About: Apache PDFBox is a Java PDF library tool that allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

RandomAccessBuffer.java  (pdfbox-2.0.23-src):RandomAccessBuffer.java  (pdfbox-2.0.24-src)
skipping to change at line 429 skipping to change at line 429
if (bufferListIndex == bufferListMaxIndex) if (bufferListIndex == bufferListMaxIndex)
{ {
throw new IOException("No more chunks available, end of buffer reach ed"); throw new IOException("No more chunks available, end of buffer reach ed");
} }
currentBufferPointer = 0; currentBufferPointer = 0;
currentBuffer = bufferList.get(++bufferListIndex); currentBuffer = bufferList.get(++bufferListIndex);
} }
/** /**
* Ensure that the RandomAccessBuffer is not closed * Ensure that the RandomAccessBuffer is not closed
* @throws IOException * @throws IOException if the RandomAccessBuffer is already closed
*/ */
private void checkClosed() throws IOException private void checkClosed() throws IOException
{ {
if (currentBuffer==null) if (currentBuffer==null)
{ {
// consider that the rab is closed if there is no current buffer // consider that the rab is closed if there is no current buffer
throw new IOException("RandomAccessBuffer already closed"); throw new IOException("RandomAccessBuffer already closed");
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)