You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by vh...@apache.org on 2014/07/28 17:16:48 UTC

svn commit: r1614048 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DefaultNestedDocumentHandler.java

Author: vhennebert
Date: Mon Jul 28 15:16:47 2014
New Revision: 1614048

URL: http://svn.apache.org/r1614048
Log:
Reset checkEOF to its initial value instead of true

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DefaultNestedDocumentHandler.java

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DefaultNestedDocumentHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DefaultNestedDocumentHandler.java?rev=1614048&r1=1614047&r2=1614048&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DefaultNestedDocumentHandler.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DefaultNestedDocumentHandler.java Mon Jul 28 15:16:47 2014
@@ -56,6 +56,7 @@ public class DefaultNestedDocumentHandle
                 if (gen != null) {
                     comment.generate(gen);
                 }
+                boolean checkEOF = parser.isCheckEOF();
                 parser.setCheckEOF(false);
                 parser.setListenersDisabled(true);
                 comment = parser.nextDSCComment(DSCConstants.END_DOCUMENT, gen);
@@ -66,13 +67,14 @@ public class DefaultNestedDocumentHandle
                 if (gen != null) {
                     comment.generate(gen);
                 }
-                parser.setCheckEOF(true);
+                parser.setCheckEOF(checkEOF);
                 parser.setListenersDisabled(false);
                 parser.next();
             } else if (DSCConstants.BEGIN_DATA.equals(comment.getName())) {
                 if (gen != null) {
                     comment.generate(gen);
                 }
+                boolean checkEOF = parser.isCheckEOF();
                 parser.setCheckEOF(false);
                 parser.setListenersDisabled(true);
                 comment = parser.nextDSCComment(DSCConstants.END_DATA, gen);
@@ -83,7 +85,7 @@ public class DefaultNestedDocumentHandle
                 if (gen != null) {
                     comment.generate(gen);
                 }
-                parser.setCheckEOF(true);
+                parser.setCheckEOF(checkEOF);
                 parser.setListenersDisabled(false);
                 parser.next();
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org