org.apache.commons.imaging.formats.jpeg.segments

## Class Segment

- java.lang.Object
- - org.apache.commons.imaging.common.BinaryFileParser
  - - org.apache.commons.imaging.formats.jpeg.segments.Segment

- Direct Known Subclasses:
    DhtSegment, DqtSegment, GenericSegment, JfifSegment, SofnSegment, SosSegment

      public abstract class Segment
      extends BinaryFileParser

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `int` | `length`
    `int` | `marker`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Segment(int marker, int length)`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `dump(PrintWriter pw)`
    `abstract String` | `getDescription()`
    `String` | `getSegmentType()`
    `String` | `toString()`

    - ### Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser

      `debugNumber, debugNumber, getByteOrder, setByteOrder`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### marker

          public final int marker

    - #### length

          public final int length

  - ### Constructor Detail

    - #### Segment

          public Segment(int marker,
                         int length)

  - ### Method Detail

    - #### dump

          public void dump(PrintWriter pw)

    - #### getDescription

          public abstract String getDescription()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### getSegmentType

          public String getSegmentType()

Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.