[Java] één file uit zip halen

Pagina: 1
Acties:

  • ari3
  • Registratie: Augustus 2002
  • Niet online
Ik wil één file uit een zip bestand halen. Nu lukt dat wel door iedere ZipEntry in het bestand te vergelijken met de bestandnaam die ik zoek, maar dan moet je het hele bestand doorlopen en wordt het dus erg traag. Kan dat niet handiger?

"Kill one man, and you are a murderer. Kill millions of men, and you are a conqueror. Kill them all, and you are a god." -- Jean Rostand


  • justmental
  • Registratie: April 2000
  • Niet online

justmental

my heart, the beat

http://www.javaworld.com/...avatips/jw-javatip49.html
Zo te zien doorloop je dan alleen de entries in de header, dat moet dus snel gaan.

Who is John Galt?