Class Info


  • public class Info
    extends java.lang.Object
    • Field Detail

      • bitstream_version_major

        public int bitstream_version_major
      • bitstream_version_minor

        public int bitstream_version_minor
      • num_headers

        public int num_headers
      • granule_shift

        public int granule_shift
      • gps_numerator

        public int gps_numerator
      • gps_denominator

        public int gps_denominator
      • language

        public java.lang.String language
      • category

        public java.lang.String category
      • regions

        public Region[] regions
      • styles

        public Style[] styles
      • curves

        public Curve[] curves
      • motions

        public Motion[] motions
      • palettes

        public Palette[] palettes
      • bitmaps

        public Bitmap[] bitmaps
      • font_ranges

        public FontRange[] font_ranges
      • font_mappings

        public com.fluendo.jkate.FontMapping[] font_mappings
      • original_canvas_width

        public int original_canvas_width
      • original_canvas_height

        public int original_canvas_height
    • Constructor Detail

      • Info

        public Info()
    • Method Detail

      • unpackRegion

        public Region unpackRegion​(com.jcraft.jogg.Buffer opb)
                            throws com.fluendo.jkate.KateException
        Decode a single region.
        Throws:
        com.fluendo.jkate.KateException
      • unpackStyle

        public Style unpackStyle​(com.jcraft.jogg.Buffer opb)
                          throws com.fluendo.jkate.KateException
        Decode a single style.
        Throws:
        com.fluendo.jkate.KateException
      • unpackMotion

        public Motion unpackMotion​(com.jcraft.jogg.Buffer opb)
                            throws com.fluendo.jkate.KateException
        Decode a single motion.
        Throws:
        com.fluendo.jkate.KateException
      • unpackPalette

        public Palette unpackPalette​(com.jcraft.jogg.Buffer opb)
                              throws com.fluendo.jkate.KateException
        Decode a single palette.
        Throws:
        com.fluendo.jkate.KateException
      • unpackBitmap

        public Bitmap unpackBitmap​(com.jcraft.jogg.Buffer opb)
                            throws com.fluendo.jkate.KateException
        Decode a single bitmap.
        Throws:
        com.fluendo.jkate.KateException
      • clear

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

        public int decodeHeader​(Comment kc,
                                com.jcraft.jogg.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.