fi.helsinki.cs.ohtu.mpeg2.video
Enum SequenceExtensionHeader.Level

java.lang.Object
  extended by java.lang.Enum<SequenceExtensionHeader.Level>
      extended by fi.helsinki.cs.ohtu.mpeg2.video.SequenceExtensionHeader.Level
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SequenceExtensionHeader.Level>
Enclosing class:
SequenceExtensionHeader

public static enum SequenceExtensionHeader.Level
extends java.lang.Enum<SequenceExtensionHeader.Level>

Represents the allowed values for the level field.


Enum Constant Summary
HIGH
          High level.
HIGH_1440
          High1440 level.
LOW
          Low level.
MAIN
          Main level.
 
Field Summary
private  UnsignedIntegerField field
           
 
Method Summary
static SequenceExtensionHeader.Level valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SequenceExtensionHeader.Level[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 void writeTo(BitOutputStream stream)
          Writes the value to a bit stream.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LOW

public static final SequenceExtensionHeader.Level LOW
Low level.


MAIN

public static final SequenceExtensionHeader.Level MAIN
Main level.


HIGH_1440

public static final SequenceExtensionHeader.Level HIGH_1440
High1440 level.


HIGH

public static final SequenceExtensionHeader.Level HIGH
High level.

Field Detail

field

private UnsignedIntegerField field
Method Detail

values

public static SequenceExtensionHeader.Level[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SequenceExtensionHeader.Level c : SequenceExtensionHeader.Level.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SequenceExtensionHeader.Level valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

writeTo

public void writeTo(BitOutputStream stream)
             throws java.io.IOException
Writes the value to a bit stream.

Parameters:
stream - The stream to write to.
Throws:
java.io.IOException - Propagated from the stream write.