C# 클래스 Org.BouncyCastle.Bcpg.OpenPgp.PgpCompressedDataGenerator

Class for producing compressed data packets.
상속: IStreamGenerator
파일 보기 프로젝트 열기: nonorganic/dssnet 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : void

Close the compressed object.

Open ( Stream outStr ) : Stream

Return an output stream which will save the data being written to the compressed object.

The stream created can be closed off by either calling Close() on the stream or Close() on the generator. Closing the returned stream does not close off the Stream parameter outStr.

Open ( Stream outStr, byte buffer ) : Stream

Return an output stream which will compress the data as it is written to it. The stream will be written out in chunks according to the size of the passed in buffer.

The stream created can be closed off by either calling Close() on the stream or Close() on the generator. Closing the returned stream does not close off the Stream parameter outStr.

Note: if the buffer is not a power of 2 in length only the largest power of 2 bytes worth of the buffer will be used.

Note: using this may break compatibility with RFC 1991 compliant tools. Only recent OpenPGP implementations are capable of accepting these streams.

PgpCompressedDataGenerator ( CompressionAlgorithmTag algorithm ) : System
PgpCompressedDataGenerator ( CompressionAlgorithmTag algorithm, int compression ) : System

비공개 메소드들

메소드 설명
doOpen ( ) : void

메소드 상세

Close() 공개 메소드

Close the compressed object.
public Close ( ) : void
리턴 void

Open() 공개 메소드

Return an output stream which will save the data being written to the compressed object.

The stream created can be closed off by either calling Close() on the stream or Close() on the generator. Closing the returned stream does not close off the Stream parameter outStr.

public Open ( Stream outStr ) : Stream
outStr Stream Stream to be used for output.
리턴 Stream

Open() 공개 메소드

Return an output stream which will compress the data as it is written to it. The stream will be written out in chunks according to the size of the passed in buffer.

The stream created can be closed off by either calling Close() on the stream or Close() on the generator. Closing the returned stream does not close off the Stream parameter outStr.

Note: if the buffer is not a power of 2 in length only the largest power of 2 bytes worth of the buffer will be used.

Note: using this may break compatibility with RFC 1991 compliant tools. Only recent OpenPGP implementations are capable of accepting these streams.

public Open ( Stream outStr, byte buffer ) : Stream
outStr Stream Stream to be used for output.
buffer byte The buffer to use.
리턴 Stream

PgpCompressedDataGenerator() 공개 메소드

public PgpCompressedDataGenerator ( CompressionAlgorithmTag algorithm ) : System
algorithm CompressionAlgorithmTag
리턴 System

PgpCompressedDataGenerator() 공개 메소드

public PgpCompressedDataGenerator ( CompressionAlgorithmTag algorithm, int compression ) : System
algorithm CompressionAlgorithmTag
compression int
리턴 System