PDFStreamObject class

PDF stream object. Streams do not eagerly read the data from the data source but instead provide a readRaw method that can be used to read the data. Closing the stream before reading data will result in an error

Inheritance
Annotations
  • @immutable

Constructors

PDFStreamObject.new({required PDFDictionary dictionary, required RandomAccessStream dataSource, required int offset, required int length, required bool isBinary})
const

Properties

dataSource RandomAccessStream
The data source of the stream.
final
dictionary PDFDictionary
The dictionary of the stream.
final
hashCode int
The hash code for this object.
no setteroverride
isBinary bool
Flag indicating if the stream is likely to contain binary data.
final
length int
The length in raw bytes of the stream.
final
offset int
The offset to read from within the dataSource.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(ObjectResolver resolver) Future<Uint8List>
Reads the filtered bytes of this stream. This means that the data will be decoded according to the PDFDictionary of this stream. When read returns, the stream will be positioned back to where it was before read started
readRaw() Future<Uint8List>
Reads the raw bytes of this stream. This means no filtering is applied. When readRaw returns, the stream will be positioned back to where it was before readRaw started.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override