Class StreamToken
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
DictionaryTokenThe stream dictionary.
data
IReadOnlyList<byte>The stream data.
Properties
Data
The compressed byte data of the stream.
public IReadOnlyList<byte> Data { get; }
Property Value
StreamDictionary
The dictionary specifying the length of the stream, any applied compression filters and additional information.
public DictionaryToken StreamDictionary { get; }
Property Value
Methods
Equals(IToken)
public bool Equals(IToken obj)
Parameters
obj
IToken
Returns
ToString()
public override string ToString()