Package org.apache.tika.parser
Class ParseRecord
- java.lang.Object
-
- org.apache.tika.parser.ParseRecord
-
public class ParseRecord extends Object
Use this class to store exceptions, warnings and other information during the parse. This information is added to the parent's metadata after the parse by theCompositeParser
.
-
-
Constructor Summary
Constructors Constructor Description ParseRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addException(Exception e)
void
addMetadata(Metadata metadata)
void
addWarning(String msg)
int
getDepth()
List<Exception>
getExceptions()
List<Metadata>
getMetadataList()
String[]
getParsers()
List<String>
getWarnings()
boolean
isWriteLimitReached()
void
setWriteLimitReached(boolean writeLimitReached)
-
-
-
Method Detail
-
getDepth
public int getDepth()
-
getParsers
public String[] getParsers()
-
addException
public void addException(Exception e)
-
addWarning
public void addWarning(String msg)
-
addMetadata
public void addMetadata(Metadata metadata)
-
setWriteLimitReached
public void setWriteLimitReached(boolean writeLimitReached)
-
isWriteLimitReached
public boolean isWriteLimitReached()
-
-