Skip to content

Commit

Permalink
PDFBOX-5660: improve javadoc; closes #198
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1922631 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Dec 22, 2024
1 parent 187a3a0 commit 703136e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
18 changes: 12 additions & 6 deletions pdfbox/src/main/java/org/apache/pdfbox/Loader.java
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ public static PDDocument loadPDF(File file, String password, InputStream keyStor
/**
* Parses a PDF. Unrestricted main memory will be used for buffering PDF new streams.
*
* @param randomAccessRead random access read representing the pdf to be loaded
* @param randomAccessRead random access read representing the pdf to be loaded. To pass an
* InputStream, wrap it into a {@link RandomAccessReadBuffer}.
*
* @return loaded document
*
Expand All @@ -380,7 +381,8 @@ public static PDDocument loadPDF(RandomAccessRead randomAccessRead) throws IOExc
/**
* Parses a PDF.
*
* @param randomAccessRead random access read representing the pdf to be loaded
* @param randomAccessRead random access read representing the pdf to be loaded. To pass an
* InputStream, wrap it into a {@link RandomAccessReadBuffer}.
* @param streamCacheCreateFunction a function to create an instance of a stream cache to be used for buffering
* new/altered PDF streams
*
Expand All @@ -399,7 +401,8 @@ public static PDDocument loadPDF(RandomAccessRead randomAccessRead,
/**
* Parses a PDF. Unrestricted main memory will be used for buffering new/altered PDF streams.
*
* @param randomAccessRead random access read representing the pdf to be loaded
* @param randomAccessRead random access read representing the pdf to be loaded. To pass an
* InputStream, wrap it into a {@link RandomAccessReadBuffer}.
* @param password password to be used for decryption
*
* @return loaded document
Expand All @@ -416,7 +419,8 @@ public static PDDocument loadPDF(RandomAccessRead randomAccessRead, String passw
/**
* Parses a PDF. Unrestricted main memory will be used for buffering new/altered PDF streams.
*
* @param randomAccessRead random access read representing the pdf to be loaded
* @param randomAccessRead random access read representing the pdf to be loaded. To pass an
* InputStream, wrap it into a {@link RandomAccessReadBuffer}.
* @param password password to be used for decryption
* @param keyStore key store to be used for decryption when using public key security
* @param alias alias to be used for decryption when using public key security
Expand All @@ -435,7 +439,8 @@ public static PDDocument loadPDF(RandomAccessRead randomAccessRead, String passw
/**
* Parses a PDF.
*
* @param randomAccessRead random access read representing the pdf to be loaded
* @param randomAccessRead random access read representing the pdf to be loaded. To pass an
* InputStream, wrap it into a {@link RandomAccessReadBuffer}.
* @param password password to be used for decryption
* @param streamCacheCreateFunction a function to create an instance of a stream cache to be used for buffering
* new/altered PDF streams
Expand All @@ -454,7 +459,8 @@ public static PDDocument loadPDF(RandomAccessRead randomAccessRead, String passw
/**
* Parses a PDF.
*
* @param randomAccessRead random access read representing the pdf to be loaded
* @param randomAccessRead random access read representing the pdf to be loaded. To pass an
* InputStream, wrap it into a {@link RandomAccessReadBuffer}.
* @param password password to be used for decryption
* @param keyStore key store to be used for decryption when using public key security
* @param alias alias to be used for decryption when using public key security
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.apache.pdfbox.cos.COSStream;
import org.apache.pdfbox.io.IOUtils;
import org.apache.pdfbox.io.RandomAccessRead;
import org.apache.pdfbox.io.RandomAccessReadBuffer;
import org.apache.pdfbox.io.RandomAccessStreamCache.StreamCacheCreateFunction;
import org.apache.pdfbox.pdfwriter.compress.CompressParameters;
import org.apache.pdfbox.pdmodel.PDDocument;
Expand Down Expand Up @@ -310,7 +311,8 @@ public void addSource(File source) throws FileNotFoundException
/**
* Add a source to the list of documents to merge.
*
* @param source RandomAccessRead representing source document
* @param source RandomAccessRead representing source document. To pass an InputStream, wrap it
* into a {@link RandomAccessReadBuffer}.
*/
public void addSource(RandomAccessRead source)
{
Expand Down

0 comments on commit 703136e

Please sign in to comment.