이 경우 TrueZip이 가장 잘 작동합니다. (이어야 내 경우)
(일반 우편의 형식 HEADER1의 파일 1의 상태에서) 추출 우편은 다음과 같은 형식의 코드 1의 HEADER1 file1을하다 자기가 ... 코드는 압축
를 추출하는 방법을 알려줍니다
) : "\ 2006Production.exe C"를 Truezip 추출 유틸리티가 추가 바이트에 대해 불평하고 예외를
을 던져 여기에 코드
private boolean Extract(String src, String dst, String incPath) {
TFile srcFile = new TFile(src, incPath);
TFile dstFile = new TFile(dst);
try {
TFile.cp_rp(srcFile, dstFile, TArchiveDetector.NULL);
} catch (IOException e) {
return true;
}
return true;
}
비록 당신은 추출과 같은이 방법 (새로운 String를 (호출 할 수 있습니다 새 문자열 ("c : \"), "");
는 현재 http://repo1.maven.org/maven2/de/schlichtherle/truezip/truezip-samples/7.5.5/truezip-samples-7.5.5-jar-with-dependencies.jar
당신은 당신의 코드에서 클래스를 가져와야합니다에서 Truezip 소스 파일 패키지 (항아리)를 다운로드 할 수 있습니다.
import de.schlichtherle.truezip.file.TArchiveDetector; import de.schlichtherle.truezip.file.TFile;
파일이 C 드라이브에서 추출됩니다 ... 파일에서 직접 작업을 수행 할 수 있습니다. 이게 도움이 되길 바란다.
감사합니다.