at.knowcenter.wag.egov.egiz.sig
Class SignatureSeparator

java.lang.Object
  extended by at.knowcenter.wag.egov.egiz.sig.SignatureSeparator

public class SignatureSeparator
extends Object

This class separates all signature blocks in a raw text.


Constructor Summary
SignatureSeparator()
          The empty constructor.
 
Method Summary
 SignatureObject getFirstSignatureObject()
           
 Stack getSignatureBlocks()
           
 int getStartIndex()
          This method returns the start index of the first signature block.
 boolean hasSignatureBlock()
           
 boolean separateBlock(String rawText)
          This method takes a raw text as input and trys to separate all signature blocks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureSeparator

public SignatureSeparator()
                   throws SignatureTypesException
The empty constructor. It loads all signature type infos to extract the signature block from the raw text.

Throws:
SignatureTypesException
Method Detail

separateBlock

public boolean separateBlock(String rawText)
This method takes a raw text as input and trys to separate all signature blocks. It returns true if a signature block is found.

Parameters:
rawText -
Returns:
true if a signature block is found false otherwise

getStartIndex

public int getStartIndex()
This method returns the start index of the first signature block. It is used to separate the real document text from the signature block texts.

Returns:
the start index of the first signature block

getFirstSignatureObject

public SignatureObject getFirstSignatureObject()
Returns:
the first found signature object in the given raw text or null if the raw text does not contain any signature objects

getSignatureBlocks

public Stack getSignatureBlocks()
Returns:
all separated signature blocks as stack, first is on top

hasSignatureBlock

public boolean hasSignatureBlock()
Returns:
true if a signature block is found false otherwise


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.