java.lang.Object
org.sejda.sambox.xref.Xref
Xref table/stream entries.
- Author:
- Andrea Vacondio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds the given entry to theXrefreplacing any entry previously associated to the given object number and generation.addIfAbsent(XrefEntry entry) Adds the given entry to theXrefif an entry with the given object number and generation is not already present.booleancontains(COSObjectKey objectKey) get(COSObjectKey objectKey) values()
-
Constructor Details
-
Xref
public Xref()
-
-
Method Details
-
addIfAbsent
Adds the given entry to theXrefif an entry with the given object number and generation is not already present.- Parameters:
entry-- Returns:
- null if the entry was added. The current entry with the given object number and generation if the entry was already present.
-
add
Adds the given entry to theXrefreplacing any entry previously associated to the given object number and generation.- Parameters:
entry-- Returns:
- the previous value or null if no entry was previously associated to the given object number and generation.
-
get
- Parameters:
objectKey-- Returns:
- the
XrefEntryfor with the given object Number and generation number or null if nothing is found
-
values
- Returns:
- an unmodifiable view of the entries in this xref
-
highestKey
- Returns:
- the highest key in this xref
-
contains
- Parameters:
objectKey-- Returns:
- true if a value for the given key is registered to this xref
-