LightweightOperatorCollection

遗产: java.lang.Object, com.aspose.pdf.BaseOperatorCollection

public class LightweightOperatorCollection extends BaseOperatorCollection

轻量级运算符集合。旨在用于未附加底层内容流的场景,结果只需要运算符集合。

构造函数

构造函数描述
LightweightOperatorCollection()初始化对象
LightweightOperatorCollection(ITrailerable trailerable, System.Collections.Generic.List operators)仅供内部使用!
LightweightOperatorCollection(OperatorCollection operatorCollection)初始化对象

方法

方法描述
add(Operator op)添加运营商
addRange(LightweightOperatorCollection oc)添加 LightweightOperatorCollection
cancelUpdate()取消上次更新。
clear()
contains(Operator item)
deleteUnrestricted(int index)内部删除 Unrestrictedelement
equals(Object arg0)
getClass()
getUnrestricted(int index)供内部使用 getUnrestricted 运算符
get_Item(int index)通过其索引获取运算符。
hashCode()
insert(int index, Operator op)插入运算符
isEmpty()如果集合为空,则返回 TRUE。
isFastTextExtractionMode()指示集合是否仅限于快速文本提取
isReadOnly()获取一个值,该值指示集合是否为只读。
iterator()返回迭代器
notify()
notifyAll()
remove(Operator item)
resumeUpdate()恢复文档更新。
set_Item(int index, Operator value)通过索引设置运算符。
size()运算符计数
suppressUpdate()抑制更新内容数据。
toList()返回运算符列表。
toString()
updateData()内部的
wait()
wait(long arg0)
wait(long arg0, int arg1)

LightweightOperatorCollection()

public LightweightOperatorCollection()

初始化对象

LightweightOperatorCollection(ITrailerable trailerable, System.Collections.Generic.List operators)

public LightweightOperatorCollection(ITrailerable trailerable, System.Collections.Generic.List<Operator> operators)

仅供内部使用!

参数:

范围类型描述
trailerableITrailerable内部对象
operatorscom.aspose.ms.System.Collections.Generic.List<com.aspose.pdf.Operator>内部对象

LightweightOperatorCollection(OperatorCollection operatorCollection)

public LightweightOperatorCollection(OperatorCollection operatorCollection)

初始化对象

参数:

范围类型描述
operatorCollectionOperatorCollectionOperatorCollection 对象

add(Operator op)

public void add(Operator op)

添加运营商

参数:

范围类型描述
opOperator运算符对象

addRange(LightweightOperatorCollection oc)

public void addRange(LightweightOperatorCollection oc)

添加 LightweightOperatorCollection

参数:

范围类型描述
ocLightweightOperatorCollectionLightweightOperatorCollection 实例

cancelUpdate()

public void cancelUpdate()

取消上次更新。当更改不应该引发内容更新时,可以调用此方法。

clear()

public void clear()

清除集合。

contains(Operator item)

public boolean contains(Operator item)

检查该项目是否在收藏中。

参数:

范围类型描述
itemOperator算子实例

退货: boolean - 布尔值

deleteUnrestricted(int index)

public void deleteUnrestricted(int index)

内部删除 Unrestrictedelement

参数:

范围类型描述
indexint整数值

equals(Object arg0)

public boolean equals(Object arg0)

参数:

范围类型描述
arg0java.lang.Object

退货: 布尔值

getClass()

public final native Class<?> getClass()

退货: java.lang.Class

getUnrestricted(int index)

public Operator getUnrestricted(int index)

供内部使用 getUnrestricted 运算符

参数:

范围类型描述
indexint整数值

退货: Operator - 操作员对象

get_Item(int index)

public Operator get_Item(int index)

通过其索引获取运算符。


Example demonstrates how to get operator of page contents by index.


 Document doc = new Document("input.pdf");
 OperatorCollection oc = doc.getPages().get_Item(1).getContents();
 Operator first = oc.get_Item(1);

参数:

范围类型描述
indexint运算符索引。编号从1开始。

退货: Operator - 来自请求索引的运算符

hashCode()

public native int hashCode()

退货: 整数

insert(int index, Operator op)

public void insert(int index, Operator op)

插入运算符

参数:

范围类型描述
indexint整数值
opOperator运算符对象

isEmpty()

public boolean isEmpty()

如果集合为空,则返回 TRUE。

退货: boolean - 布尔值

isFastTextExtractionMode()

public boolean isFastTextExtractionMode()

指示集合是否仅限于快速文本提取

退货: boolean - 布尔值

isReadOnly()

public boolean isReadOnly()

获取一个值,该值指示集合是否为只读。

退货: 布尔值

iterator()

public Iterator<Operator> iterator()

返回迭代器

退货: java.util.Iterator<com.aspose.pdf.Operator> - IGenericEnumerator 对象

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

remove(Operator item)

public boolean remove(Operator item)

从集合中移除运算符。

参数:

范围类型描述
itemOperator算子实例

退货: boolean - 布尔值

resumeUpdate()

public void resumeUpdate()

恢复文档更新。如果有任何未决更改,则更新内容流。

set_Item(int index, Operator value)

public void set_Item(int index, Operator value)

通过索引设置运算符。


Example demonstrates how to get operator of page contents by index.


 Document doc = new Document("input.pdf");
 OperatorCollection oc = doc.getPages().get_Item(1).getContents();
 Operator first = oc.get_Item(1);

参数:

范围类型描述
indexint运算符索引。编号从1开始。
valueOperator来自请求索引的运算符

size()

public int size()

运算符计数

退货: int - 整数值

suppressUpdate()

public void suppressUpdate()

抑制更新内容数据。在调用 ResumeUpdate 之前,内容流不会更新。

toList()

public System.Collections.Generic.List<Operator> toList()

返回运算符列表。

退货: com.aspose.ms.System.Collections.Generic.List<com.aspose.pdf.Operator> - 运算符列表。

toString()

public String toString()

退货: java.lang.字符串

updateData()

public void updateData()

内部的

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

参数:

范围类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

参数:

范围类型描述
arg0long
arg1int