Package org.jmrtd.io
Class FragmentBuffer.Fragment
- java.lang.Object
-
- org.jmrtd.io.FragmentBuffer.Fragment
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- FragmentBuffer
public static class FragmentBuffer.Fragment extends Object implements Serializable
Fragments encapsulate pairs of offset and length.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object otherObject)
static FragmentBuffer.Fragment
getInstance(int offset, int length)
Returns a fragment instance.int
getLength()
Returns the length of the fragment.int
getOffset()
Returns this fragment's offset within the buffer.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getInstance
public static FragmentBuffer.Fragment getInstance(int offset, int length)
Returns a fragment instance.- Parameters:
offset
- the offset within the bufferlength
- the length of the fragment- Returns:
- the new fragment
-
getOffset
public int getOffset()
Returns this fragment's offset within the buffer.- Returns:
- the offset of the fragment
-
getLength
public int getLength()
Returns the length of the fragment.- Returns:
- the length of the fragment
-
-