C# 클래스 ICSharpCode.SharpZipLib.Zip.WindowsNameTransform

WindowsNameTransform transforms ZipFile names to windows compatible ones.
상속: INameTransform
파일 보기 프로젝트 열기: icsharpcode/SharpZipLib 1 사용 예제들

공개 메소드들

메소드 설명
IsValidName ( string name ) : bool

Test a name to see if it is a valid name for a windows filename as extracted from a Zip archive.

The filename isnt a true windows path in some fundamental ways like no absolute paths, no rooted paths etc.

MakeValidName ( string name, char replacement ) : string

Force a name to be valid by replacing invalid characters with a fixed value

TransformDirectory ( string name ) : string

Transform a Zip directory name to a windows directory name.

TransformFile ( string name ) : string

Transform a Zip format file name to a windows style one.

WindowsNameTransform ( string baseDirectory ) : System

Initialises a new instance of WindowsNameTransform

비공개 메소드들

메소드 설명
WindowsNameTransform ( ) : System

Initialise static class information.

메소드 상세

IsValidName() 공개 정적인 메소드

Test a name to see if it is a valid name for a windows filename as extracted from a Zip archive.
The filename isnt a true windows path in some fundamental ways like no absolute paths, no rooted paths etc.
public static IsValidName ( string name ) : bool
name string The name to test.
리턴 bool

MakeValidName() 공개 정적인 메소드

Force a name to be valid by replacing invalid characters with a fixed value
public static MakeValidName ( string name, char replacement ) : string
name string The name to make valid
replacement char The replacement character to use for any invalid characters.
리턴 string

TransformDirectory() 공개 메소드

Transform a Zip directory name to a windows directory name.
public TransformDirectory ( string name ) : string
name string The directory name to transform.
리턴 string

TransformFile() 공개 메소드

Transform a Zip format file name to a windows style one.
public TransformFile ( string name ) : string
name string The file name to transform.
리턴 string

WindowsNameTransform() 공개 메소드

Initialises a new instance of WindowsNameTransform
public WindowsNameTransform ( string baseDirectory ) : System
baseDirectory string
리턴 System