OperatorCollection

OperatorCollection

Vue de l’ensemble

‘OperatorCollection’ est une classe dans Aspose.PDF FOSS pour Java.Déduit de: Iterable<Ooperator>.

Il représente une séquence d’opérateurs à partir d’un flux de contenu PDF.

Cette classe fournit 19 méthodes pour travailler avec les objets d’OperatorCollection dans les programmes Java. Les méthodologies disponibles comprennent: ‘Ooperator Collection’, ‘accept’, add, ‘addAt’, ‘clear’, ’delete , 'getAll et 4 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : ‘all`.

Propriétés

NameTypeAccessDescription
allList<Operator>ReadReturns an unmodifiable view of all operators.

méthodes

SignatureDescription
OperatorCollection(operators: List<Operator>)Creates a collection from an existing list of operators.
OperatorCollection()Creates an empty operator collection.
size()intReturns the number of operators in this collection.
get(index: int)OperatorReturns the operator at the given 1-based position
(Aspose-style indexing — {@code ops.get(1)} is the first operator).
getAt(index: int)OperatorReturns the operator at the given 0-based position.
setAt(index: int, op: Operator)Engine-side 0-based setter; pair with {@link #getAt(int)}.
removeAt(index: int)Engine-side 0-based remove; pair with {@link #getAt(int)}.
addAt(index: int, op: Operator)Engine-side 0-based insert; pair with {@link #getAt(int)}.
add(op: Operator)Appends an operator to the end of this collection.
add(other: java.util.Collection<? extends Operator>)Appends every operator from {@code other} to this collection.
set(index: int, op: Operator)Replaces the operator at the specified 1-based index.
insert(index: int, op: Operator)Inserts an operator at the specified 1-based index.
delete(index: int)Removes the operator at the specified 1-based index.
delete(toDelete: java.util.List<Operator>)Removes every operator contained in {@code toDelete} from this
collection, matching by reference identity (not {@code equals}).
accept(visitor: org.aspose.pdf.operators.IOperatorSelector)Visitor entry point: invokes {@link IOperatorSelector#visit(Operator)}
for each operator in this collection, in order.
clear()Removes every operator from this collection.
iterator()Iterator<Operator>Returns an iterator over the operators.
getAll()List<Operator>Returns an unmodifiable view of all operators.
toString()StringReturns a string representation of all operators, one per line.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français