xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vhenneb...@apache.org
Subject svn commit: r1614048 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DefaultNestedDocumentHandler.java
Date Mon, 28 Jul 2014 15:16:48 GMT
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


Mime
View raw message