Package com.inet.pdfc.generator.message
Class InfoData
java.lang.Object
com.inet.pdfc.generator.message.InfoData
- All Implemented Interfaces:
Chunk
,Serializable
information about a specific page comparison
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inet.pdfc.generator.message.Chunk
Chunk.ChunkType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreturns the file of the secondPDF being comparedint
returns the total number of pages in the first PDFint
Deprecated.Returns the profile which was used for this comparison run.returns the file of the first PDF being comparedint
returns the total number of pages in the second PDFint
Deprecated.As of i-net PDFC 5.0 please migrate togetFirstPageCount()
getType()
Returns the type of this chunk
-
Constructor Details
-
InfoData
public InfoData(PdfSource f1, PdfSource f2, int firstTotalPages, int secondTotalPages, IProfile comparisonConfig) default constructor with necessary dependencies- Parameters:
f1
- file of the first PDF being comparedf2
- file of the second PDF being comparedfirstTotalPages
- total number of pages in the first PDF, use -1 for uninitializedsecondTotalPages
- total number of pages in the second PDF, use -1 for uninitializedcomparisonConfig
- the configuration used to create the current results, ifnull
aDefaultProfile
will be used furthermore used as a hint for the garbage collector.- Since:
- 4.0
-
InfoData
creates the instance for not yet parsed files. In that case the page count is undefined and will be set to -1- Parameters:
f1
- file of the first PDF being comparedf2
- file of the second PDF being comparedcomparisonConfig
- the configuration used to create the current results, ifnull
aDefaultProfile
will be used- Since:
- 4.0
-
-
Method Details
-
getSecondFile
returns the file of the first PDF being compared- Returns:
- the file of the first PDF being compared, can be
null
if a file is missing in batch mode! - Since:
- 4.0
-
getFirstFile
returns the file of the secondPDF being compared- Returns:
- the file of the second PDF being compared, can be
null
if a file is missing in batch mode! - Since:
- 4.0
-
getFirstTotalPageNumber
Deprecated.As of i-net PDFC 5.0 please migrate togetFirstPageCount()
returns the total number of pages in the first PDF- Returns:
- the total number of pages in the first PDF, -1 if uninitialized
- Since:
- 4.0
-
getFirstPageCount
public int getFirstPageCount()returns the total number of pages in the first PDF- Returns:
- the total number of pages in the first PDF, -1 if uninitialized
- Since:
- 5.0
-
getSecondTotalPageNumber
Deprecated.As of i-net PDFC 5.0 please migrate togetFirstPageCount()
returns the total number of pages in the second PDF- Returns:
- the total number of pages in the secondPDF, -1 if uninitialized
- Since:
- 4.0
-
getSecondPageCount
public int getSecondPageCount()returns the total number of pages in the second PDF- Returns:
- the total number of pages in the secondPDF, -1 if uninitialized
- Since:
- 5.0
-
getProfile
Returns the profile which was used for this comparison run. The returned instance is a copy of the profile used by the comparer.- Returns:
- the compare profile, never
null
- Since:
- 4.0
-
getType
Returns the type of this chunk
-
getFirstPageCount()