1 package jp.sfjp.armadillo.archive.cab;
4 import jp.sfjp.armadillo.archive.*;
5 import jp.sfjp.armadillo.io.*;
7 public final class CabArchiveExtractor implements ArchiveExtractor {
9 private CabInputStream is;
11 public CabArchiveExtractor(InputStream is) {
12 this.is = new CabInputStream(is);
16 public ArchiveEntry nextEntry() throws IOException {
17 return ArchiveEntry.orNull(is.getNextEntry());
21 public long extract(OutputStream os) throws IOException {
22 return IOUtilities.transferAll(is, os);
26 public void close() throws IOException {