Table of Contents

Class InputMeta

Namespace
iText.Kernel.Pdf.Canvas.Wmf
Assembly
itext.kernel.dll

Helper class to read nt, short, words, etc. from an InputStream.

public class InputMeta
Inheritance
InputMeta
Inherited Members

Constructors

InputMeta(Stream)

Creates an InputMeta object.

public InputMeta(Stream @in)

Parameters

in Stream

InputStream containing the WMF data

Methods

GetLength()

Get the amount of bytes read and/or skipped from the InputStream.

public virtual int GetLength()

Returns

int

number of bytes read

ReadByte()

Read the next byte from the InputStream.

public virtual int ReadByte()

Returns

int

the next byte

ReadColor()

Read the next Color from the InputStream.

public virtual Color ReadColor()

Returns

Color

the next Color

Remarks

Read the next Color from the InputStream. This reads 4 bytes.

ReadInt()

Read the next int from the InputStream.

public virtual int ReadInt()

Returns

int

the next int

ReadShort()

Read the next short from the InputStream.

public virtual int ReadShort()

Returns

int

the next short value

ReadWord()

Read the next word from the InputStream.

public virtual int ReadWord()

Returns

int

the next word or 0 if the end of the stream has been reached

Skip(int)

Skips "len" amount of bytes from the InputStream.

public virtual void Skip(int len)

Parameters

len int

amount of bytes needed to skip

Remarks

Skips "len" amount of bytes from the InputStream. If len is < 0, nothing is skipped.