Class AbstractSegment

java.lang.Object
org.apache.commons.imaging.common.BinaryFileParser
org.apache.commons.imaging.formats.jpeg.segments.AbstractSegment
Direct Known Subclasses:
AbstractGenericSegment, DhtSegment, DqtSegment, JfifSegment, SofnSegment, SosSegment

public abstract class AbstractSegment extends BinaryFileParser
Abstracts segment implementations.
  • Field Details

    • marker

      public final int marker
      Segment marker.
    • length

      public final int length
      Segment length.
  • Constructor Details

    • AbstractSegment

      public AbstractSegment(int marker, int length)
      Constructs a new instance.
      Parameters:
      marker - segment marker.
      length - segment length.
  • Method Details

    • dump

      public void dump(PrintWriter pw)
    • getDescription

      public abstract String getDescription()
      Gets the description.
      Returns:
      the description.
    • getSegmentType

      public String getSegmentType()
      Gets the type.
      Returns:
      the type.
    • toString

      public String toString()
      Overrides:
      toString in class Object