C# 클래스 Ionic.Zip.ZipSegmentedStream

상속: System.IO.Stream
파일 보기 프로젝트 열기: haf/DotNetZip.Semverd 1 사용 예제들

공개 메소드들

메소드 설명
ComputeSegment ( int length ) : UInt32
Flush ( ) : void
ForReading ( string name, uint initialDiskNumber, uint maxDiskNumber ) : ZipSegmentedStream
ForUpdate ( string name, uint diskNumber ) : Stream

Sort-of like a factory method, ForUpdate is used only when the application needs to update the zip entry metadata for a segmented zip file, when the starting segment is earlier than the ending segment, for a particular entry.

The update is always contiguous, never rolls over. As a result, this method doesn't need to return a ZSS; it can simply return a FileStream. That's why it's "sort of" like a Factory method.

Caller must Close/Dispose the stream object returned by this method.

ForWriting ( string name, int maxSegmentSize ) : ZipSegmentedStream
Read ( byte buffer, int offset, int count ) : int

Read from the stream

Seek ( long offset, System origin ) : long
SetLength ( long value ) : void
ToString ( ) : String
TruncateBackward ( uint diskNumber, long offset ) : long
Write ( byte buffer, int offset, int count ) : void

Write to the stream.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
ZipSegmentedStream ( ) : System
_NameForSegment ( uint diskNumber ) : string
_SetReadStream ( ) : void
_SetWriteStream ( uint increment ) : void

메소드 상세

ComputeSegment() 공개 메소드

public ComputeSegment ( int length ) : UInt32
length int
리턴 System.UInt32

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

ForReading() 공개 정적인 메소드

public static ForReading ( string name, uint initialDiskNumber, uint maxDiskNumber ) : ZipSegmentedStream
name string
initialDiskNumber uint
maxDiskNumber uint
리턴 ZipSegmentedStream

ForUpdate() 공개 정적인 메소드

Sort-of like a factory method, ForUpdate is used only when the application needs to update the zip entry metadata for a segmented zip file, when the starting segment is earlier than the ending segment, for a particular entry.

The update is always contiguous, never rolls over. As a result, this method doesn't need to return a ZSS; it can simply return a FileStream. That's why it's "sort of" like a Factory method.

Caller must Close/Dispose the stream object returned by this method.

public static ForUpdate ( string name, uint diskNumber ) : Stream
name string
diskNumber uint
리턴 Stream

ForWriting() 공개 정적인 메소드

public static ForWriting ( string name, int maxSegmentSize ) : ZipSegmentedStream
name string
maxSegmentSize int
리턴 ZipSegmentedStream

Read() 공개 메소드

Read from the stream
public Read ( byte buffer, int offset, int count ) : int
buffer byte the buffer to read
offset int the offset at which to start
count int the number of bytes to read
리턴 int

Seek() 공개 메소드

public Seek ( long offset, System origin ) : long
offset long
origin System
리턴 long

SetLength() 공개 메소드

public SetLength ( long value ) : void
value long
리턴 void

ToString() 공개 메소드

public ToString ( ) : String
리턴 String

TruncateBackward() 공개 메소드

public TruncateBackward ( uint diskNumber, long offset ) : long
diskNumber uint
offset long
리턴 long

Write() 공개 메소드

Write to the stream.
public Write ( byte buffer, int offset, int count ) : void
buffer byte the buffer from which to write
offset int the offset at which to start writing
count int the number of bytes to write
리턴 void