- All Known Implementing Classes:
MarkedUpTextAssembler
public interface TextAssembler
process a series of objects and text fragments, assembling them into a one final text object representing the whole
content.
- Author:
- dgd
-
Method Summary
Modifier and TypeMethodDescriptionendParsingContext(String containingElementName) assembler can calculate an identifier for each word on a page, for use in markup.voidvoidprocess(ParsedText parsed, String contextName) voidvoidrenderText(FinalText completed) voidrenderText(ParsedTextImpl parsed) voidreset()voidsetPage(int page)
-
Method Details
-
process
- Parameters:
completed- process a complete chunk -- just add this subsection into the proper place.contextName- Name of the element context we are in. Null value if it's an Artifact.
-
process
- Parameters:
completed- process a complete chunk -- just add this subsection into the proper place.contextName- Name of the element context we are in. Null value if it's an Artifact.
-
process
- Parameters:
parsed- process one of a number of raw pdf text chunks, with placement, font, etc.contextName- Name of the element context we are in. Null value if it's an Artifact.
-
renderText
- Parameters:
completed- process a complete chunk -- just add this subsection into the proper place.
-
renderText
- Parameters:
parsed- process one of a number of raw pdf text chunks, with placement, font, etc.
-
endParsingContext
- Parameters:
containingElementName- This is an element name to surround the extracted text- Returns:
- the final text for the set of fragments and fully parsed items we were passed during processing.
-
getWordId
String getWordId()assembler can calculate an identifier for each word on a page, for use in markup.- Returns:
- the new unique id.
-
setPage
void setPage(int page) - Parameters:
page- number of the page we are assembling
-
reset
void reset()
-