net.freeutils.tnef

Class RendData

public class RendData extends Object

The RendData class encapsulates a TNEF attachment's rendering data.

Since: 2003-04-25

Field Summary
static intatypFile
RendData type constant.
static intatypMax
RendData type constant.
static intatypNull
RendData type constant.
static intatypOle
RendData type constant.
static intatypPicture
RendData type constant.
static intMAC_BINARY
RendData type constant.
Constructor Summary
RendData(RawInputStream data)
Constructs a RendData using the given TNEF stream.
RendData(int type, long position, int width, int height, long flags)
Constructs a RendData containing the specified values.
Method Summary
longgetFlags()
Gets the RendData flags.
intgetHeight()
Gets the RendData height.
longgetPosition()
Gets the RendData position.
intgetType()
Gets the RendData type.
intgetWidth()
Gets the RendData width.
StringtoString()
Returns a string representation of this object.

Field Detail

atypFile

public static final int atypFile
RendData type constant.

atypMax

public static final int atypMax
RendData type constant.

atypNull

public static final int atypNull
RendData type constant.

atypOle

public static final int atypOle
RendData type constant.

atypPicture

public static final int atypPicture
RendData type constant.

MAC_BINARY

public static final int MAC_BINARY
RendData type constant.

Constructor Detail

RendData

public RendData(RawInputStream data)
Constructs a RendData using the given TNEF stream.

Parameters: data the TNEF stream to parse RendData from

Throws: IOException if the stream end is reached, or if an I/O error occurs

RendData

public RendData(int type, long position, int width, int height, long flags)
Constructs a RendData containing the specified values.

Parameters: type the type of rendering data (from atyp* constants) position the position to render data at width the width of object to be rendered height the height of object to be rendered flags the flags describing the rendering data

Method Detail

getFlags

public long getFlags()
Gets the RendData flags.

Returns: the RendData flags

getHeight

public int getHeight()
Gets the RendData height.

Returns: the RendData height

getPosition

public long getPosition()
Gets the RendData position.

Returns: the RendData position

getType

public int getType()
Gets the RendData type.

Returns: the RendData type

getWidth

public int getWidth()
Gets the RendData width.

Returns: the RendData width

toString

public String toString()
Returns a string representation of this object.

Returns: a string representation of this object