iText 7 7.1.8 API
iText.IO.Source.GetBufferedRandomAccessSource Class Reference
Inheritance diagram for iText.IO.Source.GetBufferedRandomAccessSource:
iText.IO.Source.IRandomAccessSource

Public Member Functions

  GetBufferedRandomAccessSource (IRandomAccessSource source)
  Constructs a new OffsetRandomAccessSource More...
 
virtual int  Get (long position)
  Gets a byte at the specified position More...
 
virtual int  Get (long position, byte[] bytes, int off, int len)
  Read an array of bytes of specified length from the specified position of source to the buffer applying the offset. More...
 
virtual long  Length ()
  Gets the length of the source More...
 
virtual void  Close ()
  Does nothing - the underlying source is not closed More...
 

Constructor & Destructor Documentation

◆ GetBufferedRandomAccessSource()

iText.IO.Source.GetBufferedRandomAccessSource.GetBufferedRandomAccessSource ( IRandomAccessSource  source )
inline

Constructs a new OffsetRandomAccessSource

Parameters
source the source

Member Function Documentation

◆ Close()

virtual void iText.IO.Source.GetBufferedRandomAccessSource.Close ( )
inlinevirtual

Does nothing - the underlying source is not closed

Exceptions
System.IO.IOException

Implements iText.IO.Source.IRandomAccessSource.

◆ Get() [1/2]

virtual int iText.IO.Source.GetBufferedRandomAccessSource.Get ( long  position )
inlinevirtual

Gets a byte at the specified position

Exceptions
System.IO.IOException

Implements iText.IO.Source.IRandomAccessSource.

◆ Get() [2/2]

virtual int iText.IO.Source.GetBufferedRandomAccessSource.Get ( long  position,
byte[]  bytes,
int  off,
int  len 
)
inlinevirtual

Read an array of bytes of specified length from the specified position of source to the buffer applying the offset.

Exceptions
System.IO.IOException

Implements iText.IO.Source.IRandomAccessSource.

◆ Length()

virtual long iText.IO.Source.GetBufferedRandomAccessSource.Length ( )
inlinevirtual

Gets the length of the source

Implements iText.IO.Source.IRandomAccessSource.