Table of Contents

Class CountOutputStream

Namespace
iText.Kernel.XMP.Impl
Assembly
itext.kernel.dll

An

OutputStream
that counts the written bytes.

@since 08.11.2006

public sealed class CountOutputStream : Stream, IDisposable, IAsyncDisposable
Inheritance
CountOutputStream
Implements
Inherited Members

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

Flush()

public override void Flush()

GetBytesWritten()

public int GetBytesWritten()

Returns

int

the bytesWritten

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[])

Counts the written bytes.

public void Write(byte[] buf)

Parameters

buf byte[]
See Also

Write(byte[], int, int)

Counts the written bytes.

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

Parameters

buf byte[]
off int
len int
See Also

Write(int)

Counts the written bytes.

public void Write(int b)

Parameters

b int
See Also