There is an archive in it a set of files, you need to read the files from the archive and selectively take one of them, you do not need to unzip the archive to disk, you want to load individual files into streams and then work with them.
What I tried:
ZipFile zf=new ZipFile("src/pack/text.zip") //загружал архив Enumeration entries = zf.entries()//собирал список файлов while(entries.hasMoreElements()) { //проходил по всем элементам архива ZipEntry entry=(ZipEntry)entries.nextElement();//брал отдельный файл InputStream stream=new InputStream()//создавал поток stream=zf.getInputStream(entry);//пихал туда отдельный файл I would like to know what is recorded in the streams, only the internal file?
How to continue to use the recorded data in the stream? How then to write down for example in a line the contents of the file.
I read about the conversion of bytes, it is not clear enough, it is necessary to conjure with encodings
The kettle will be happy for any help.