|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectat.gv.egiz.pdfas.impl.vfilter.VerificationFilterImpl
| Nested Class Summary | |
protected static class |
VerificationFilterImpl.SignaturesAndOld
|
| Field Summary | |
static String |
ASSUME_ONLY_SIGNATURE_BLOCKS
|
static String |
BINARY_ONLY
|
static String |
CHECK_DOCUMENT
|
| Constructor Summary | |
VerificationFilterImpl()
|
|
| Method Summary | |
protected void |
checkBinaryOnly(PdfDataSource pdf,
boolean considerOldSigs)
|
protected void |
debugIUBlocks(List blocks)
|
protected void |
debugPartitions(List partitions)
|
protected String |
determineRestText(List newSignatures,
String extractedText)
|
protected List |
extractBinarySignaturesOnly(PdfDataSource pdf,
List blocks)
Extracts the binary singatures from the given PDF. |
protected List |
extractNewAndOldSignaturesFromText(String text)
|
protected List |
extractNewSignaturesFromText(String text)
|
protected SignatureHolder |
extractOldSignature(String extractedText,
List newSignatures)
Extracts the old signature from the text, but only if it is older than the oldest signature of the new signatueres. |
protected List |
extractOldSignaturesFromText(String text)
|
List |
extractSignatureHolders(PdfDataSource pdf,
List blocks,
VerificationFilterParameters parameters)
Extracts the signatures from the given PDF. |
protected List |
extractSignatures(PdfDataSource pdf,
int endOfDocument)
|
protected VerificationFilterImpl.SignaturesAndOld |
extractSignaturesAndOld(String text)
|
protected List |
extractSignaturesFromPartition(PdfDataSource pdf,
Partition partition)
|
protected VerificationFilterImpl.SignaturesAndOld |
extractSignaturesFromPartitionAndOld(PdfDataSource pdf,
Partition partition)
|
List |
extractSignaturHolders(TextDataSource text,
VerificationFilterParameters parameters)
Extracts the text signatures from the given free-text. |
protected String |
extractText(PdfDataSource pdf,
int endOfDocument)
|
protected String |
extractText(PdfDataSource pdf,
int endOfDocument,
String encoding)
|
protected List |
filterOutBinarySignatures(List signatures)
|
protected List |
flattenOutTextPartitions(List partitions,
List blocks)
|
protected List |
intermingleSignatures(List binarySignatures,
List extractedSignatures)
|
protected String |
normalizeText(String freetext)
|
protected List |
performBinaryOnly(PdfDataSource pdf,
List blocks)
|
protected List |
performFullConservative(PdfDataSource pdf,
boolean scanForOldSignatures,
List blocks,
List partitions)
|
protected List |
performSemiConservative(PdfDataSource pdf,
boolean scanForOldSignatures,
List blocks,
List partitions)
|
protected void |
sortSignatures(List signatures)
|
protected void |
unrollLinearization(List blocks)
Removes the linearization footer from the list of update blocks. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String CHECK_DOCUMENT
public static final String BINARY_ONLY
public static final String ASSUME_ONLY_SIGNATURE_BLOCKS
| Constructor Detail |
public VerificationFilterImpl()
| Method Detail |
public List extractSignatureHolders(PdfDataSource pdf,
List blocks,
VerificationFilterParameters parameters)
throws VerificationFilterException
VerificationFilter
extractSignatureHolders in interface VerificationFilterpdf - The PDF.blocks - The List of Incremental Update blocks. Usually this comes from a
preprocessing step.parameters - The algorithm parameters.
VerificationFilterException - Thrown if something goes wrong.VerificationFilter.extractSignatureHolders(at.gv.egiz.pdfas.framework.input.PdfDataSource,
java.util.List,
at.gv.egiz.pdfas.framework.vfilter.VerificationFilterParameters)
public List extractSignaturHolders(TextDataSource text,
VerificationFilterParameters parameters)
throws VerificationFilterException
VerificationFilter
extractSignaturHolders in interface VerificationFiltertext - The free-text.parameters - The algorithm parameters.
VerificationFilterException - Thrown if something goes wrong.VerificationFilter.extractSignaturHolders(at.gv.egiz.pdfas.framework.input.TextDataSource,
at.gv.egiz.pdfas.framework.vfilter.VerificationFilterParameters)
protected String normalizeText(String freetext)
throws VerificationFilterException
VerificationFilterExceptionprotected void unrollLinearization(List blocks)
blocks - The list of FooterParseResult objects in \prev order.
protected List performBinaryOnly(PdfDataSource pdf,
List blocks)
throws VerificationFilterException
VerificationFilterException
protected List performSemiConservative(PdfDataSource pdf,
boolean scanForOldSignatures,
List blocks,
List partitions)
throws VerificationFilterException
VerificationFilterException
protected List performFullConservative(PdfDataSource pdf,
boolean scanForOldSignatures,
List blocks,
List partitions)
throws VerificationFilterException
VerificationFilterException
protected List flattenOutTextPartitions(List partitions,
List blocks)
protected String extractText(PdfDataSource pdf,
int endOfDocument)
throws PresentableException
PresentableException
protected String extractText(PdfDataSource pdf,
int endOfDocument,
String encoding)
throws PresentableException
PresentableException
protected List extractNewSignaturesFromText(String text)
throws VerificationFilterException
VerificationFilterException
protected List extractNewAndOldSignaturesFromText(String text)
throws VerificationFilterException
VerificationFilterException
protected List extractOldSignaturesFromText(String text)
throws PresentableException
PresentableException
protected List intermingleSignatures(List binarySignatures,
List extractedSignatures)
protected List filterOutBinarySignatures(List signatures)
protected void sortSignatures(List signatures)
protected void debugIUBlocks(List blocks)
protected void debugPartitions(List partitions)
protected List extractBinarySignaturesOnly(PdfDataSource pdf,
List blocks)
throws VerificationFilterException
IU blocks without an egiz dict are not considered.
pdf - blocks -
PresentableException
VerificationFilterException
protected List extractSignatures(PdfDataSource pdf,
int endOfDocument)
throws VerificationFilterException
VerificationFilterException
protected String determineRestText(List newSignatures,
String extractedText)
protected List extractSignaturesFromPartition(PdfDataSource pdf,
Partition partition)
throws VerificationFilterException
VerificationFilterException
protected VerificationFilterImpl.SignaturesAndOld extractSignaturesFromPartitionAndOld(PdfDataSource pdf,
Partition partition)
throws VerificationFilterException
VerificationFilterException
protected void checkBinaryOnly(PdfDataSource pdf,
boolean considerOldSigs)
throws VerificationFilterException
VerificationFilterException
protected VerificationFilterImpl.SignaturesAndOld extractSignaturesAndOld(String text)
throws VerificationFilterException
VerificationFilterException
protected SignatureHolder extractOldSignature(String extractedText,
List newSignatures)
throws PDFDocumentException,
SignatureException,
NormalizeException,
SignatureTypesException
extractedText - newSignatures -
PDFDocumentException
SignatureException
NormalizeException
SignatureTypesException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||