|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.util.ContentParser
public class ContentParser
The ContentParser is responsible for parsing a page's content streams. The parsed text, image and other PDF object types are added the pages Shapes object for later drawing and display.
| Field Summary | |
|---|---|
static float |
OVERPAINT_ALPHA
|
| Constructor Summary | |
|---|---|
ContentParser(Library l,
Resources r)
|
|
| Method Summary | |
|---|---|
GraphicsState |
getGraphicsState()
Returns the current graphics state object being used by this content stream. |
Shapes |
parse(java.io.InputStream source)
Parse a pages content stream. |
Shapes |
parseTextBlocks(java.io.InputStream source)
Specialized method for extracting text from documents. |
void |
setGraphicsState(GraphicsState graphicState)
Sets the graphics state object which will be used for the current content parsing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final float OVERPAINT_ALPHA
| Constructor Detail |
|---|
public ContentParser(Library l,
Resources r)
l - PDF library master object.r - resources| Method Detail |
|---|
public GraphicsState getGraphicsState()
public void setGraphicsState(GraphicsState graphicState)
graphicState - graphics state of this content stream
public Shapes parse(java.io.InputStream source)
throws java.lang.InterruptedException
source - byte stream containing page content
java.lang.InterruptedException - if current parse thread is interruped.public Shapes parseTextBlocks(java.io.InputStream source)
source - content stream source.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||