The internal buffer used to record events is enlarged in chunks. So some space may be left after the last event has been recorded. This method resizes the buffer to the minimum.
This method is called by {@link #endDocument endDocument} automatically. However, if only anXML fragment is recorded, there may never be an endDocument event and the mothod should be called manually.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.