Table of Contents

Class RASInputStream

Namespace
iText.IO.Source
Assembly
itext.io.dll

An input stream that uses a as its underlying source.

public class RASInputStream : Stream, IDisposable, IAsyncDisposable
Inheritance
RASInputStream
Implements
Inherited Members

Constructors

RASInputStream(IRandomAccessSource)

Creates an input stream based on the source.

public RASInputStream(IRandomAccessSource source)

Parameters

source IRandomAccessSource

The source.

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()

GetSource()

public IRandomAccessSource GetSource()

Returns

IRandomAccessSource

Read(byte[], int, int)

public override int Read(byte[] b, int off, int len)

Parameters

b byte[]
off int
len int

Returns

int

ReadByte()

public override int ReadByte()

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

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

Parameters

buffer byte[]
offset int
count int