Class State


  • public class State
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      State()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      Event decodeEventOut()
      Returns the event (if any) generated from the last decoded packet.
      int decodeInit​(Info ki)
      Initialize for decoding.
      int decodePacketin​(com.jcraft.jogg.Packet op)
      Decode a Kate data packet.
      double granuleDuration​(long granulepos)
      Returns, in seconds, duration in granule units
      double granuleTime​(long granulepos)
      Returns, in seconds, absolute time of current packet in given logical stream
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • State

        public State()
    • Method Detail

      • clear

        public void clear()
      • decodeInit

        public int decodeInit​(Info ki)
        Initialize for decoding.
      • decodePacketin

        public int decodePacketin​(com.jcraft.jogg.Packet op)
        Decode a Kate data packet. Headers are supposed to have been parsed already. An event may be generated, and will then be available from decodeEventOut.
      • decodeEventOut

        public Event decodeEventOut()
        Returns the event (if any) generated from the last decoded packet.
      • granuleTime

        public double granuleTime​(long granulepos)
        Returns, in seconds, absolute time of current packet in given logical stream
      • granuleDuration

        public double granuleDuration​(long granulepos)
        Returns, in seconds, duration in granule units