Record Class FileSegment
java.lang.Object
java.lang.Record
org.monte.media.tiff.FileSegment
Holds offset and length of a TIFF file segment.
In a JPEG JFIF stream, a TIFF file can be segmented over multiple APP markers.
- Author:
- Werner Randelshofer
-
Constructor Summary
ConstructorsConstructorDescriptionFileSegment(long offset, long length) Creates an instance of aFileSegmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longlength()Returns the value of thelengthrecord component.longoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileSegment
public FileSegment(long offset, long length) Creates an instance of aFileSegmentrecord class.- Parameters:
offset- the value for theoffsetrecord componentlength- the value for thelengthrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
offset
public long offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
length
public long length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-