COSBase instances to COSObjectKeys and allows for a bidirectional
lookup.
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | COSObjectPool(long
The highest known object number. highestXRefObjectNumber)Creates a map of |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(COSObjectKey
The key)COSObjectKey that shall be checked for a registered COSBase.Returns true, if a |
| public boolean | |
| public long | Returns: The highest known object number (see:COSObjectKey for further information), that is currently
registered in this pool.Returns the highest known object number (see: |
| public COSObjectKey | Returns: key TheCOSObjectKey, that matches the registered COSBase, or null if such an object is
not registered.The object)COSBase a COSObjectKey shall be determined for.Returns the |
| public COSBase | Returns: TheCOSBase, that is registered for the given COSObjectKey, or null if no object is
registered for that key.The key)COSObjectKey a registered COSBase shall be found for.Returns the |
| public COSObjectKey | Returns: The actual key, the object has been added for.The key, that shall be added. key, COSBase The object, that shall be added. object)Update the key and object maps. |
| highestXRefObjectNumber | back to summary |
|---|---|
| private long highestXRefObjectNumber | |
| keyPool | back to summary |
|---|---|
| private final Map<COSObjectKey, COSBase> keyPool | |
| objectPool | back to summary |
|---|---|
| private final Map<COSBase, COSObjectKey> objectPool | |
| COSObjectPool | back to summary |
|---|---|
| public COSObjectPool(long highestXRefObjectNumber) Creates a map of
| |
| contains | back to summary |
|---|---|
| public boolean contains(COSObjectKey key) Returns true, if a
| |
| contains | back to summary |
|---|---|
| public boolean contains(COSBase object) Returns true, if the given | |
| getHighestXRefObjectNumber | back to summary |
|---|---|
| public long getHighestXRefObjectNumber() Returns the highest known object number (see:
| |
| getKey | back to summary |
|---|---|
| public COSObjectKey getKey(COSBase object) Returns the
| |
| getObject | back to summary |
|---|---|
| public COSBase getObject(COSObjectKey key) Returns the
| |
| put | back to summary |
|---|---|
| public COSObjectKey put(COSObjectKey key, COSBase object) Update the key and object maps.
| |