Skip to content

Commit 36abf2a

Browse files
committed
PDFBOX-5660: improve javadoc
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1930661 13f79535-47bb-0310-9956-ffa450edef68
1 parent 5439dea commit 36abf2a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,23 @@ public DomXmpParser() throws XmpParsingException
9797
}
9898
}
9999

100+
/**
101+
* Tell if strict parsing mode is enabled.
102+
*
103+
* @return Whether strict parsing mode is enabled or not.
104+
*/
100105
public boolean isStrictParsing()
101106
{
102107
return strictParsing;
103108
}
104109

110+
/**
111+
* Enable or disable strict parsing mode.
112+
*
113+
* @param strictParsing Whether to be strict when parsing XMP: true (the default) means that
114+
* malformed XMP will result in an exception, false means that if malformed content is
115+
* encountered, the parser will continue its work if possible.
116+
*/
105117
public void setStrictParsing(boolean strictParsing)
106118
{
107119
this.strictParsing = strictParsing;

0 commit comments

Comments
 (0)