RandomAccessBuffer consumes too much memory.

Details

Description

RandomAccessBuffer holds uncompressed image during operation because it is what exactly pdfbox ExtractImages do.
but holding uncompressed image instead of compressed one in memory consumes too much memory, not excluding many PDF XObjects that can use filter to compress itself. It would be good if pdfbox provides option that reverts to COSObject state just before the RandomAccess object created(the state that pdf XObject stream parsed and COSDictionary objects haven't created because user doesn't requested it using get____() method.) It is crucial feature so that pdfbox can analyze huge pdf file(>100MB).
In current source, one must close COSStream unless required(and I know closed stream cannot reopened again.)