process
protected boolean process(int bytesToEat)
throws java.io.IOException
Processes the marker segment. The DataInputStream
will be at the point of having read the marker code. The
process method must consume exactly the number
of bytes remaining in the marker segment; for a marker,
this number will always be 0.
- Specified by:
process in class MarkerSegment
- Parameters:
bytesToEat - The number of bytes that must be consumed.
For a Marker, this number will always be 0.
If it is 0 for a MarkerSegment, the
number of bytes to consume is unknown.
- Returns:
true if segment is well-formed,
false otherwise.
- Throws:
java.io.IOException