LzipArchive.LzipArchive
내용물
[
숨다
]LzipArchive(LzipArchiveSettings)
의 새 인스턴스를 초기화합니다.LzipArchive
.
public LzipArchive(LzipArchiveSettings settings = null)
모수 | 유형 | 설명 |
---|---|---|
settings | LzipArchiveSettings | 사전 크기 정의와 함께 특정 lzip 아카이브 설정. |
또한보십시오
- class LzipArchiveSettings
- class LzipArchive
- 네임스페이스 Aspose.Zip.Lzip
- 집회 Aspose.Zip
LzipArchive(Stream)
의 새 인스턴스를 초기화합니다.LzipArchive
압축 해제를 위해 준비된 클래스.
public LzipArchive(Stream sourceStream)
모수 | 유형 | 설명 |
---|---|---|
sourceStream | Stream | 아카이브의 소스입니다. |
예외
예외 | 상태 |
---|---|
ArgumentException | sourceStream 찾을 수 없습니다. |
ArgumentNullException | sourceStream null입니다. |
InvalidDataException | 헤더가 아카이브의 lzip 유형과 일치하지 않습니다. |
비고
이 생성자는 압축을 풀지 않습니다. 보다Extract
압축 해제 방법.
또한보십시오
- class LzipArchive
- 네임스페이스 Aspose.Zip.Lzip
- 집회 Aspose.Zip
LzipArchive(string)
의 새 인스턴스를 초기화합니다.LzipArchive
압축 해제를 위해 준비된 클래스.
public LzipArchive(string path)
모수 | 유형 | 설명 |
---|---|---|
path | String | 아카이브 소스의 경로입니다. |
예외
예외 | 상태 |
---|---|
ArgumentNullException | path null입니다. |
SecurityException | 호출자에게 액세스에 필요한 권한이 없습니다. |
ArgumentException | 그만큼path 비어 있거나 공백만 포함하거나 잘못된 문자를 포함합니다. |
UnauthorizedAccessException | 파일에 대한 액세스path 거부되었습니다. |
PathTooLongException | 지정된path, 파일 이름 또는 둘 다 시스템 정의 최대 길이를 초과합니다. 예를 들어 Windows 기반 플랫폼에서 경로는 248자 미만이어야 하고 파일 이름은 260자 미만이어야 합니다. |
NotSupportedException | 파일 위치path 문자열 중간에 콜론(:)을 포함합니다. |
InvalidDataException | 헤더가 아카이브의 lzip 유형과 일치하지 않습니다. |
비고
이 생성자는 압축을 풀지 않습니다. 보다Extract
압축 해제 방법.
예
using (FileStream extractedFile = File.Open(extractedFileName, FileMode.Create))
{
using (var archive = new LzipArchive(sourceLzipFile))
{
archive.Extract(extractedFile);
}
}
또한보십시오
- class LzipArchive
- 네임스페이스 Aspose.Zip.Lzip
- 집회 Aspose.Zip