|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.util.content.AbstractContentParser
org.icepdf.core.util.content.OContentParser
public class OContentParser
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 |
|---|
| Fields inherited from class org.icepdf.core.util.content.AbstractContentParser |
|---|
geometricPath, glyph2UserSpaceScale, graphicState, inTextBlock, library, oCGs, OVERPAINT_ALPHA, resources, shapes, stack, textBlockBase |
| Constructor Summary | |
|---|---|
OContentParser(Library l,
Resources r)
|
|
| Method Summary | |
|---|---|
ContentParser |
parse(byte[][] streamBytes)
Parse a pages content stream. |
Shapes |
parseTextBlocks(byte[][] source)
Specialized method for extracting text from documents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OContentParser(Library l,
Resources r)
l - PDF library master object.r - resources| Method Detail |
|---|
public ContentParser parse(byte[][] streamBytes)
throws java.lang.InterruptedException,
java.io.IOException
parse in interface ContentParserparse in class AbstractContentParserstreamBytes - byte stream containing page content
java.lang.InterruptedException - if current parse thread is interrupted.
java.io.IOException - unexpected end of content stream.
public Shapes parseTextBlocks(byte[][] source)
throws java.io.UnsupportedEncodingException
parseTextBlocks in interface ContentParserparseTextBlocks in class AbstractContentParsersource - content stream source.
java.io.UnsupportedEncodingException - encoding error.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||