PdfArray
Overview
PdfArray เป็นคลาสใน Aspose.PDF FOSS สําหรับ Java. ทายาทจาก: PdfBase, Iterable<PdfBase>.
อัตถุกรณ์เรียง PDF (§7.3.6, ISO 32000-1:2008).
หมวดนี้ให้ 30 วิธีในการทํางานกับวัตถุ PdfArray ในโปรแกรม Java. วิธีการที่ใช้ได้แก่: PdfArray, accept, add, clear, equals, get, getArray, getDictionary, getFloat, getInt, getLong, getName,และวิธีการเพิ่มเติม 16 วิธี. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Java ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Java. คุณสมบัติ: dirty, empty, indirect, objectKey.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
empty | boolean | Read | กลับข้อมูลว่า array มีเปล่าหรือไม่. |
dirty | boolean | Read | กลับ {@code true} หากวัตถุนี้ถูกปรับเปลี่ยนตั้งแต่การโหลด. |
indirect | boolean | Read | กลับข้อมูลว่าตัวนี้เป็นตัวอ้างอิง (มีคีย์ของตัว) หรือไม่. |
objectKey | PdfObjectKey | Read | กลับคีย์วัตถุที่ไม่ตรง, หรือ {@code null} สําหรับวัสดุโดยตรง. |
Methods
| Signature | Description |
|---|---|
PdfArray() | สร้างอาร์เรย์ว่างที่มีความจุเบื้องต้นแบบตั้งค่า. |
PdfArray(initialCapacity: int) | สร้างอาร์เรย์ว่างที่มีความจุเบียนเริ่มต้นที่กําหนดไว้. |
size() → int | คืนจํานวนองค์ประกอบ. |
isEmpty() → boolean | กลับข้อมูลว่า array มีเปล่าหรือไม่. |
get(index: int) → PdfBase | กลับตัวอย่างที่อัตรานิยมให้. |
add(item: PdfBase) | ใส่ตัวต่อท้าย. |
add(index: int, item: PdfBase) | การใส่ตัวอย่างที่อัตรานิยมที่ให้ไว้. |
set(index: int, item: PdfBase) → PdfBase | แทนตัวประกอบที่อัตรานิยมที่ให้ไว้. |
remove(index: int) → PdfBase | ลบองค์ประกอบที่อัตรานิยมที่ให้ไว้. |
clear() | ยกเลิกทุกองค์ประกอบ. |
getInt(index: int, defaultValue: int) → int | ส่งตัวประกอบที่อัตรานิยมที่ให้ไว้เป็น int หรือค่าตั้งค่าถ้าตัวอย่างไม่ใช่แบบเลข. |
getLong(index: int, defaultValue: long) → long | กลับตัวประกอบที่อัตรานิยมที่ให้เป็น long หรือค่าตั้งค่า. |
getFloat(index: int, defaultValue: float) → float | ส่งกลับตัวประกอบที่อัตรานิยมที่ให้เป็น float หรือค่าตั้งค่าโดย default. |
getName(index: int) → String | ส่งตัวประกอบที่อัตรานิยมที่ให้เป็นสายชื่อ หรือ null กลับ. |
getString(index: int) → String | ส่งตัวประกอบที่อัตรานิยมที่ให้เป็นค่าเชือก หรือ null กลับ. |
getDictionary(index: int) → PdfDictionary | กลับตัวในอัตรานิยมที่ให้เป็น PdfDictionary, หรือ null. |
getArray(index: int) → PdfArray | กลับตัวในอัตรานิยมที่ให้เป็น PdfArray, หรือ null. |
toFloatArray() → float[] | เปลี่ยนทารางนี้เป็น float []. |
toIntArray() → int[] | เปลี่ยนทารางนี้เป็น int []. |
iterator() → Iterator<PdfBase> | |
writeTo(os: OutputStream) | |
accept(visitor: IPdfVisitor<T>) → T | |
equals(o: Object) → boolean | |
hashCode() → int | |
toString() → String | |
isDirty() → boolean | กลับ {@code true} หากวัตถุนี้ถูกปรับเปลี่ยนตั้งแต่การโหลด. |
setDirty(dirty: boolean) | วางธงสกปรกบนวัตถุนี้. |
isIndirect() → boolean | กลับข้อมูลว่าตัวนี้เป็นตัวอ้างอิง (มีคีย์ของตัว) หรือไม่. |
getObjectKey() → PdfObjectKey | กลับคีย์วัตถุที่ไม่ตรง, หรือ {@code null} สําหรับวัสดุโดยตรง. |
setObjectKey(key: PdfObjectKey) | ตั้งคีย์อัตราปัจจัยที่ไม่ตรง. |