Enum Marker

java.lang.Object
java.lang.Enum<Marker>
pixy.image.jpeg.Marker
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Marker>, java.lang.constant.Constable

public enum Marker
extends java.lang.Enum<Marker>
Class represents JPEG marker.
Version:
1.0 01/08/2013
Author:
Wen Yu, yuwen_66@yahoo.com
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  Marker.Attribute  

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    APP0  
    APP1  
    APP10  
    APP11  
    APP12  
    APP13  
    APP14  
    APP15  
    APP2  
    APP3  
    APP4  
    APP5  
    APP6  
    APP7  
    APP8  
    APP9  
    COM  
    DAC  
    DHP  
    DHT  
    DNL  
    DQT  
    DRI  
    EOI  
    EXP  
    JPG  
    JPG0  
    JPG13  
    PADDING  
    RST0
    RSTn are used for resync, may be ignored, no length and other contents are associated with these markers.
    RST1  
    RST2  
    RST3  
    RST4  
    RST5  
    RST6  
    RST7  
    SOF0  
    SOF1  
    SOF10  
    SOF11  
    SOF13  
    SOF14  
    SOF15  
    SOF2  
    SOF3  
    SOF5  
    SOF6  
    SOF7  
    SOF9  
    SOI  
    SOS  
    TEM
    Define JPEG markers.
    UNKNOWN  
  • Method Summary

    Modifier and Type Method Description
    static Marker fromShort​(short value)  
    java.lang.String getDescription()  
    short getValue()  
    java.lang.String toString()  
    static Marker valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static Marker[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

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

      public static Marker 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
    • getDescription

      public java.lang.String getDescription()
    • getValue

      public short getValue()
    • fromShort

      public static Marker fromShort​(short value)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Enum<Marker>