@Deprecated public class ParsingResult extends Object
There are recognized data for each data field, messages for unrecognized data field (if it wasn't recognized due to some error) and some stats: number of correctly recognized data fields, number of data fields recognized with warnings and number of data fields recognized with errors.
Constructor and Description |
---|
ParsingResult(com.itextpdf.pdf2data.template.Template template, Map<String,List<List
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Map<String,List<List<ResultElement>>> |
getAllResults()
Deprecated.
Returns a map with recognition results.
|
int |
getCorrectNumber()
Deprecated.
Returns a number of data fields that were recognized correctly.
|
int |
getErrorsNumber()
Deprecated.
Returns a number of data fields that were recognized with errors.
|
ResultImage |
getFirstResultAsImage(String dataFieldName)
Deprecated.
Checks if recognized elements for specified datafield are images and returns first of them.
|
ResultTable |
getFirstResultAsTable(String dataFieldName)
Deprecated.
Checks if recognized elements for specified data field are tables and returns first of them.
|
ResultText |
getFirstResultAsText(String dataFieldName)
Deprecated.
Checks if recognized elements for specified datafield aren't tables and returns first of them.
|
String |
getMessage(String dataFieldName)
Deprecated.
Return an error or warning message for datafield.
|
Map<String,List<List |
getRawResults()
Deprecated.
Returns raw recognition results.
|
List<ResultElement> |
getResults(String dataFieldName)
Deprecated.
Returns list of recognized objects.
|
int |
getWarningsNumber()
Deprecated.
Returns a number of data fields that were recognized with warnings.
|
void |
saveToJson(File outputJson)
Deprecated.
Saves parsing results to provided json file.
|
void |
saveToJson(File outputJson, SerializationProperties properties)
Deprecated.
Saves parsing results to provided json file.
|
void |
saveToJson(OutputStream jsonOutputStream)
Deprecated.
Saves parsing results to output stream in json form.
|
void |
saveToJson(OutputStream jsonOutputStream, SerializationProperties properties)
Deprecated.
Saves parsing results to output stream in json form.
|
void |
saveToXml(File outputXml)
Deprecated.
Saves parsing results to provided xml file.
|
void |
saveToXml(File outputXml, SerializationProperties properties)
Deprecated.
Saves parsing results to provided xml file.
|
void |
saveToXml(OutputStream xmlOutputStream)
Deprecated.
Saves parsing results to output stream in xml form.
|
void |
saveToXML(OutputStream xmlOutputStream)
Deprecated.
use
saveToXml(OutputStream) instead.
|
void |
saveToXML(OutputStream xmlOutputStream, RecognitionProperties properties)
Deprecated.
|
void |
saveToXml(OutputStream xmlOutputStream, SerializationProperties properties)
Deprecated.
Saves parsing results to output stream in xml form.
|
void |
saveToXML(String outputXML)
Deprecated.
use
saveToXml(File) instead.
|
void |
saveToXML(String outputXML, RecognitionProperties properties)
Deprecated.
use
saveToXml(File, SerializationProperties) instead.
|
public String getMessage(String dataFieldName)
dataFieldName
- datafield name
@Deprecated public void saveToXML(String outputXML)
saveToXml(File)
instead.
outputXML
- path to xml file
@Deprecated public void saveToXML(String outputXML, RecognitionProperties properties)
saveToXml(File, SerializationProperties)
instead.
outputXML
- path to xml file
properties
- a RecognitionProperties
instance
@Deprecated public void saveToXML(OutputStream xmlOutputStream)
saveToXml(OutputStream)
instead.
xmlOutputStream
- output stream
@Deprecated public void saveToXML(OutputStream xmlOutputStream, RecognitionProperties properties)
saveToXml(OutputStream, SerializationProperties)
instead.
xmlOutputStream
- output stream
properties
- a RecognitionProperties
instance
public void saveToJson(File outputJson) throws IOException
outputJson
- outputJson xml file
IOException
- if any I/O exception occurs
public void saveToJson(File outputJson, SerializationProperties properties) throws IOException
outputJson
- output stream
properties
- a SerializationProperties
instance
IOException
- if any I/O exception occurs
public void saveToJson(OutputStream jsonOutputStream)
jsonOutputStream
- output stream
public void saveToJson(OutputStream jsonOutputStream, SerializationProperties properties)
jsonOutputStream
- output stream
properties
- a SerializationProperties
instance
public void saveToXml(File outputXml) throws IOException
outputXml
- xml file
IOException
- if any I/O exception occurs
public void saveToXml(File outputXml, SerializationProperties properties) throws IOException
outputXml
- output stream
properties
- a SerializationProperties
instance
IOException
- if any I/O exception occurs
public void saveToXml(OutputStream xmlOutputStream)
xmlOutputStream
- output stream
public void saveToXml(OutputStream xmlOutputStream, SerializationProperties properties)
xmlOutputStream
- output stream
properties
- a SerializationProperties
instance
public List<ResultElement> getResults(String dataFieldName)
dataFieldName
- data field name
public Map<String,List<List<ResultElement>>> getAllResults()
public Map<String,List<List>> getRawResults()
public ResultTable getFirstResultAsTable(String dataFieldName)
dataFieldName
- data field name
ClassCastException
- if results for specified datafield aren't tables
public ResultImage getFirstResultAsImage(String dataFieldName)
dataFieldName
- datafield name
ClassCastException
- if results for specified datafield aren't images
public ResultText getFirstResultAsText(String dataFieldName)
dataFieldName
- datafield name
ClassCastException
- if results for specified datafield are tables
public int getWarningsNumber()
public int getErrorsNumber()
public int getCorrectNumber()
Copyright © 2024. All rights reserved.