Enum Class MpegStreamType

java.lang.Object
java.lang.Enum<MpegStreamType>
org.codice.alliance.libs.mpegts.MpegStreamType
All Implemented Interfaces:
Serializable, Comparable<MpegStreamType>, Constable

public enum MpegStreamType extends Enum<MpegStreamType>
These are the types of streams that may be contained in an MPEG-TS.
  • Enum Constant Details

  • Method Details

    • values

      public static MpegStreamType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MpegStreamType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • lookup

      public static MpegStreamType lookup(int tag)
      Find the MpegStreamType based on the MPEG-TS stream tag number.
      Parameters:
      tag - stream tag number
      Returns:
      MpegStreamType (may be null)
      See Also:
      • MTSUtils.StreamType.getTag()
    • lookup

      public static MpegStreamType lookup(org.jcodec.containers.mps.MTSUtils.StreamType streamType)
      Find the MpegStreamType based on a MTSUtils.StreamType.
      Parameters:
      streamType - must be non-null
      Returns:
      MpegStreamType (may be null)