/** * Insert the given stream at the beginning of the existing stream array. * * @param streamToBeInserted */ public void insertCOSStream(PDStream streamToBeInserted) { COSArray tmp = new COSArray(); tmp.add(streamToBeInserted); tmp.addAll(streams); streams.clear(); streams = tmp; }