com.fluendo.jkate

Class Info

public class Info extends Object

Field Summary
Bitmap[]bitmaps
intbitstream_version_major
intbitstream_version_minor
Stringcategory
Curve[]curves
FontMapping[]font_mappings
FontRange[]font_ranges
intgps_denominator
intgps_numerator
intgranule_shift
Stringlanguage
KateMarkupTypemarkup_type
Motion[]motions
intnum_headers
intoriginal_canvas_height
intoriginal_canvas_width
Palette[]palettes
Region[]regions
Style[]styles
KateTextDirectionalitytext_directionality
KateTextEncodingtext_encoding
Method Summary
voidclear()
Resets the header decoder to the start, so a new stream may be decoded.
intdecodeHeader(Comment kc, Packet op)
Decodes a Kate header, updating the info with the data decoded from the header.
BitmapunpackBitmap(Buffer opb)
Decode a single bitmap.
MotionunpackMotion(Buffer opb)
Decode a single motion.
PaletteunpackPalette(Buffer opb)
Decode a single palette.
RegionunpackRegion(Buffer opb)
Decode a single region.
StyleunpackStyle(Buffer opb)
Decode a single style.

Field Detail

bitmaps

public Bitmap[] bitmaps

bitstream_version_major

public int bitstream_version_major

bitstream_version_minor

public int bitstream_version_minor

category

public String category

curves

public Curve[] curves

font_mappings

public FontMapping[] font_mappings

font_ranges

public FontRange[] font_ranges

gps_denominator

public int gps_denominator

gps_numerator

public int gps_numerator

granule_shift

public int granule_shift

language

public String language

markup_type

public KateMarkupType markup_type

motions

public Motion[] motions

num_headers

public int num_headers

original_canvas_height

public int original_canvas_height

original_canvas_width

public int original_canvas_width

palettes

public Palette[] palettes

regions

public Region[] regions

styles

public Style[] styles

text_directionality

public KateTextDirectionality text_directionality

text_encoding

public KateTextEncoding text_encoding

Method Detail

clear

public void clear()
Resets the header decoder to the start, so a new stream may be decoded.

decodeHeader

public int decodeHeader(Comment kc, Packet op)
Decodes a Kate header, updating the info with the data decoded from the header. If the next expected header is decoded properly, the next header will be expected. Headers beyond the ones we know about are ignored.

unpackBitmap

public Bitmap unpackBitmap(Buffer opb)
Decode a single bitmap.

unpackMotion

public Motion unpackMotion(Buffer opb)
Decode a single motion.

unpackPalette

public Palette unpackPalette(Buffer opb)
Decode a single palette.

unpackRegion

public Region unpackRegion(Buffer opb)
Decode a single region.

unpackStyle

public Style unpackStyle(Buffer opb)
Decode a single style.