You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2025/12/17 10:07:45 UTC
svn commit: r1930660 - pdfbox/branches/3.0/xmpbox/src/main/java/org/apache/xmpbox/xml
Author: tilman
Date: Wed Dec 17 10:07:44 2025
New Revision: 1930660
Log:
PDFBOX-5660: improve javadoc
Modified:
pdfbox/branches/3.0/xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java
Modified: pdfbox/branches/3.0/xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java
==============================================================================
--- pdfbox/branches/3.0/xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java Wed Dec 17 09:10:32 2025 (r1930659)
+++ pdfbox/branches/3.0/xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java Wed Dec 17 10:07:44 2025 (r1930660)
@@ -97,11 +97,23 @@ public class DomXmpParser
}
}
+ /**
+ * Tell if strict parsing mode is enabled.
+ *
+ * @return Whether strict parsing mode is enabled or not.
+ */
public boolean isStrictParsing()
{
return strictParsing;
}
+ /**
+ * Enable or disable strict parsing mode.
+ *
+ * @param strictParsing Whether to be strict when parsing XMP: true (the default) means that
+ * malformed XMP will result in an exception, false means that if malformed content is
+ * encountered, the parser will continue its work if possible.
+ */
public void setStrictParsing(boolean strictParsing)
{
this.strictParsing = strictParsing;