Table of Contents

Class OutputStreamEncryption

Namespace
iText.Kernel.Crypto
Assembly
itext.kernel.dll
public abstract class OutputStreamEncryption : Stream, IDisposable, IAsyncDisposable
Inheritance
OutputStreamEncryption
Implements
Derived
Inherited Members

Constructors

OutputStreamEncryption(Stream)

Creates a new instance of OutputStreamEncryption

protected OutputStreamEncryption(Stream @out)

Parameters

out Stream

the target Stream to write encrypted content to

Fields

out

protected Stream @out

Field Value

Stream

Properties

CanRead

public override bool CanRead { get; }

Property Value

bool

CanSeek

public override bool CanSeek { get; }

Property Value

bool

CanWrite

public override bool CanWrite { get; }

Property Value

bool

Length

public override long Length { get; }

Property Value

long

Position

public override long Position { get; set; }

Property Value

long

Methods

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

Finish()

public abstract void Finish()

Flush()

public override void Flush()

Read(byte[], int, int)

public override int Read(byte[] buffer, int offset, int count)

Parameters

buffer byte[]
offset int
count int

Returns

int

Seek(long, SeekOrigin)

public override long Seek(long offset, SeekOrigin origin)

Parameters

offset long
origin SeekOrigin

Returns

long

SetLength(long)

public override void SetLength(long value)

Parameters

value long

Write(byte[])

Writes b.length bytes from the specified byte array to this output stream. The general contract for write(b) is that it should have exactly the same effect as the call write(b, 0, b.length) .

public virtual void Write(byte[] b)

Parameters

b byte[]

the data.

See Also

Write(byte[], int, int)

public override abstract void Write(byte[] b, int off, int len)

Parameters

b byte[]
off int
len int

Write(int)

public virtual void Write(int b)

Parameters

b int