Table of Contents

Class StreamToken

Namespace
UglyToad.PdfPig.Tokens
Assembly
UglyToad.PdfPig.Tokens.dll

A stream consists of a dictionary followed by zero or more bytes bracketed between the keywords stream and endstream. The bytes may be compressed by application of zero or more filters which are run in the order specified in the StreamDictionary.

public class StreamToken : IDataToken<IReadOnlyList<byte>>, IToken, IEquatable<IToken>
Inheritance
StreamToken
Implements
Inherited Members

Constructors

StreamToken(DictionaryToken, IReadOnlyList<byte>)

Create a new StreamToken.

public StreamToken(DictionaryToken streamDictionary, IReadOnlyList<byte> data)

Parameters

streamDictionary DictionaryToken

The stream dictionary.

data IReadOnlyList<byte>

The stream data.

Properties

Data

The compressed byte data of the stream.

public IReadOnlyList<byte> Data { get; }

Property Value

IReadOnlyList<byte>

StreamDictionary

The dictionary specifying the length of the stream, any applied compression filters and additional information.

public DictionaryToken StreamDictionary { get; }

Property Value

DictionaryToken

Methods

Equals(IToken)

public bool Equals(IToken obj)

Parameters

obj IToken

Returns

bool

ToString()

public override string ToString()

Returns

string