At Oracle Openworld 2008 the Integration Broker deep dive session went through an example of how to segment a large document file using the STAX api.
A brief description of the problem and solution is here:
Download file
The sample code can be found here: