Is there a way to reset ZipInputStream?

Hi,
My api receives as an input a ZipInputStream, and processes certain files in the stream. The algorithm that this api implements needs to scan the files back and forth multiple times. So I would either read all the files into the JVM and do the scannings in memoty, or somehow be able to "reset" the stream so that at most one file at a time needs to be in memory. I prefer the 2nd approach because the number of files in the stream is unknown, and the 1st approach might cause a momery issue. However, I googled ZipInputStream and got the impression the the ZipInputStream as it is cannot reset.
Did I miss something or understand it wrong?
Any inputs? thanks very much,

gftech wrote:
Hi,
My api receives as an input a ZipInputStream, and processes certain files in the stream. The algorithm that this api implements needs to scan the files back and forth multiple times. So I would either read all the files into the JVM and do the scannings in memoty, or somehow be able to "reset" the stream so that at most one file at a time needs to be in memory. I prefer the 2nd approach because the number of files in the stream is unknown, and the 1st approach might cause a momery issue. However, I googled ZipInputStream and got the impression the the ZipInputStream as it is cannot reset.
Did I miss something or understand it wrong?
Any inputs? thanks very much,What is the source? A socket?

Similar Messages

Maybe you are looking for

  • GRC 10.0 / PI 7.3

    Boa tarde, pessoal, tudo bem? Estou com um problema referente às Government Independent Namespace. Estamos fazendo implantação. Entramos no Process Integration 7.3, fomos ao Enterprise Services Builder (do Enterprise Services Repository). Havia apena

  • How to sync iphone with a different itunes and different apple ID without erasing

    I have 2 iphones and both have different contents on them, and both are synced to one apple id and itunes account. What im looking to do is "unlink" one of my iphones and connect that to a different apple id and itunes account on a different computer

  • FREE_SELECTIONS_DIALOG in a Tabstrip

    Dear Experts, I have been searching for help, but I couldn't find any helpful discussion so far. I know we can generate full screen or popup screen using FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG. My question: Is it possible to generate dynamic

  • Java code to access the SLD

    Hi, I'm writing a java application that needs to connect to the SLD Server and then query and return data about the SID and available instances and associated database(s). I have figured out the connection piece using  SAP_JCODestinationAccessor, but

  • RESTful webservices invocation from OSB.

    Can some one please explain the best way to develop the OSB service to invoke the Restful services. 1. Only proxy service is enough to handle the request, no need of business service? 2. when moving the code from one env to other, we use a business s