Author: mrglavas
Date: Wed Sep 13 13:52:53 2006
New Revision: 443118

URL: http://svn.apache.org/viewvc?view=rev&rev=443118
Log:
Minor revision to the previous commit. Pass the byte buffer to ScannedEntity's 
constructor directly.

Modified:
    xerces/java/trunk/src/org/apache/xerces/impl/XMLEntityManager.java

Modified: xerces/java/trunk/src/org/apache/xerces/impl/XMLEntityManager.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/XMLEntityManager.java?view=diff&rev=443118&r1=443117&r2=443118
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/XMLEntityManager.java 
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/XMLEntityManager.java Wed Sep 
13 13:52:53 2006
@@ -1160,7 +1160,7 @@
         // create entity
         fCurrentEntity = new ScannedEntity(name,
                 new XMLResourceIdentifierImpl(publicId, literalSystemId, 
baseSystemId, expandedSystemId),
-                stream, reader, encoding, literal, false, isExternal);
+                stream, reader, fTempByteBuffer, encoding, literal, false, 
isExternal);
                
fCurrentEntity.setEncodingExternallySpecified(encodingExternallySpecified);
         fEntityScanner.setCurrentEntity(fCurrentEntity);
         fResourceIdentifier.setValues(publicId, literalSystemId, baseSystemId, 
expandedSystemId);
@@ -2579,7 +2579,7 @@
         /** Constructs a scanned entity. */
         public ScannedEntity(String name,
                              XMLResourceIdentifier entityLocation,
-                             InputStream stream, Reader reader,
+                             InputStream stream, Reader reader, byte [] 
byteBuffer,
                              String encoding, boolean literal, boolean 
mayReadChunks, boolean isExternal) {
             super(name,XMLEntityManager.this.fInExternalSubset);
             this.entityLocation = entityLocation;
@@ -2591,7 +2591,7 @@
             this.isExternal = isExternal;
             this.fCharacterBuffer = fCharacterBufferPool.getBuffer(isExternal);
             this.ch = fCharacterBuffer.ch;
-            this.fByteBuffer = fTempByteBuffer;
+            this.fByteBuffer = byteBuffer;
         } // 
<init>(StringXMLResourceIdentifier,InputStream,Reader,String,boolean, boolean)
 
         //



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to