DocumentFactory
Содержание
[
Скрывать
]Наследование: java.lang.Object, com.aspose.pdf.IVentureLicenseTarget
public class DocumentFactory extends IVentureLicenseTarget
Класс, который позволяет создавать/загружать документы разных типов.
Конструкторы
Конструктор | Описание |
---|---|
DocumentFactory() |
Методы
Метод | Описание |
---|---|
createDocument() | Создать пустой документ. |
createDocument(InputStream input) | Загрузить документ из потока. |
createDocument(InputStream input, LoadOptions options) | Создать документ. |
createDocument(InputStream input, String password) | Загрузить защищенный паролем документ из потока. |
createDocument(String fileName) | Загрузить документ из файла. |
equals(Object arg0) | |
getClass() | |
hashCode() | |
notify() | |
notifyAll() | |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
DocumentFactory()
public DocumentFactory()
createDocument()
public Document createDocument()
Создать пустой документ.
Возвращает: Document - Создан документ.
createDocument(InputStream input)
public Document createDocument(InputStream input)
Загрузить документ из потока.
Параметры:
Параметр | Тип | Описание |
---|---|---|
input | java.io.InputStream | Входной поток. |
Возвращает: Document - Создан документ.
createDocument(InputStream input, LoadOptions options)
public Document createDocument(InputStream input, LoadOptions options)
Создать документ.
Параметры:
Параметр | Тип | Описание |
---|---|---|
input | java.io.InputStream | Входной поток. |
options | LoadOptions | Варианты загрузки документов. |
Возвращает: Document - Объект документа
createDocument(InputStream input, String password)
public Document createDocument(InputStream input, String password)
Загрузить защищенный паролем документ из потока.
Параметры:
Параметр | Тип | Описание |
---|---|---|
input | java.io.InputStream | Исходный поток. |
password | java.lang.String | Пароль для доступа к документу. |
Возвращает: Document - Создан документ.
createDocument(String fileName)
public Document createDocument(String fileName)
Загрузить документ из файла.
Параметры:
Параметр | Тип | Описание |
---|---|---|
fileName | java.lang.String | Имя файла PDF. |
Возвращает: Document - Создан документ.
equals(Object arg0)
public boolean equals(Object arg0)
Параметры:
Параметр | Тип | Описание |
---|---|---|
arg0 | java.lang.Object |
Возвращает: логический
getClass()
public final native Class<?> getClass()
Возвращает: java.lang.Класс
hashCode()
public native int hashCode()
Возвращает: инт
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Возвращает: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Параметры:
Параметр | Тип | Описание |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Параметры:
Параметр | Тип | Описание |
---|---|---|
arg0 | long | |
arg1 | int |