Table of Contents

Class IndependentRandomAccessSource

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

A RandomAccessSource that is wraps another RandomAccessSource but does not propagate close().

public class IndependentRandomAccessSource : IRandomAccessSource
Inheritance
IndependentRandomAccessSource
Implements
Inherited Members

Remarks

A RandomAccessSource that is wraps another RandomAccessSource but does not propagate close(). This is useful when passing a RandomAccessSource to a method that would normally close the source.

Constructors

IndependentRandomAccessSource(IRandomAccessSource)

Constructs a new IndependentRandomAccessSource object

public IndependentRandomAccessSource(IRandomAccessSource source)

Parameters

source IRandomAccessSource

the source

Methods

Close()

Does nothing - the underlying source is not closed

public virtual void Close()

Get(long)

public virtual int Get(long position)

Parameters

position long

Returns

int

Get(long, byte[], int, int)

public virtual int Get(long position, byte[] bytes, int off, int len)

Parameters

position long
bytes byte[]
off int
len int

Returns

int

Length()

public virtual long Length()

Returns

long