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.
-
-
Constructor Summary
Constructors Constructor Description AbstractSegment(int marker, int length)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddump(java.io.PrintWriter pw)abstract java.lang.StringgetDescription()Gets the description.java.lang.StringgetSegmentType()Gets the type.java.lang.StringtoString()-
Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
-
-
-
Method Detail
-
dump
public void dump(java.io.PrintWriter pw)
-
getDescription
public abstract java.lang.String getDescription()
Gets the description.- Returns:
- the description.
-
getSegmentType
public java.lang.String getSegmentType()
Gets the type.- Returns:
- the type.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-