FileSpecification

FileSpecification

Overview

FileSpecification là một lớp trong Aspose.PDF FOSS cho Java.

Nó đại diện cho một thông số kỹ thuật tệp được nhúng (ISO 32000-1:2008, §7.11.3, bảng 44).

Khóa học này cung cấp 21 phương pháp để làm việc với các đối tượng FileSpecification trong các chương trình Java. Các phương pháp có sẵn bao gồm: FileSpecification, getContents, getData, getDescription, getEmbeddedStream, getMIMEType, getMimeType, getName, getParams, getPdfDictionary, getRelationship, getUnicodeFileName,6 phương pháp bổ sung. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng Java nào sau khi cài đặt Aspose.PDF FOSS cho gói Java. Tài sản : contents, data, description, embeddedStream, mIMEType, mimeType,Và 5 nhiều hơn nữa.

Properties

NameTypeAccessDescription
nameStringRead/F - tên file.
unicodeFileNameStringRead/UF - Unicode tên tệp.
descriptionStringRead/Desc - Mô tả.
relationshipStringRead/ Phân phối.
mIMETypeStringReadMIME từ dòng /Subtype.
paramsFileParamsReadQuay lại các parameter file (khoảng, ngày, số tiền kiểm tra).
contentsInputStreamReadTrả lại nội dung tệp được nhúng như một InputStream.
mimeTypeStringReadTrở lại kiểu MIME (cũng giống như {@link #getMIMEType()}).
databyte[]ReadTrả lại dữ liệu file được nhúng.
embeddedStreamPdfStreamReadTrả lại dòng file được nhúng từ /EF/F.
pdfDictionaryPdfDictionaryReadTrở lại từ điển cơ bản.

Methods

SignatureDescription
FileSpecification(dict: PdfDictionary)Tắt một từ điển cụ thể file hiện có.
FileSpecification(file: String)Tạo một thông số tệp từ {@code file}, không có mô tả.
FileSpecification(file: String, description: String)Tạo một thông số tập tin với tên và mô tả tập Tin.
FileSpecification(stream: InputStream, name: String)Tạo một cụm từ tệp từ InputStream.
getName()String/F - tên file.
setName(name: String)Nhập tên tệp (/F).
getUnicodeFileName()String/UF - Unicode tên tệp.
setUnicodeFileName(name: String)Nhập tên tệp Unicode (/UF).
getDescription()String/Desc - Mô tả.
setDescription(desc: String)Đặt mô tả ( / Disc ).
getRelationship()String/ Phân phối.
setRelationship(rel: String)Đặt mối quan hệ AF.
getMIMEType()StringMIME từ dòng /Subtype.
setMIMEType(mimeType: String)Đặt kiểu MIME trên dòng tích hợp.
getParams()FileParamsQuay lại các parameter file (tích thước, ngày, số tiền kiểm tra).
getContents()InputStreamTrả lại nội dung tệp được nhúng như một InputStream.
setMimeType(mimeType: String)Thiết lập kiểu MIME (cũng giống như {@link #setMIMEType(String)}).
getMimeType()StringTrở lại kiểu MIME (cũng giống như {@link #getMIMEType()}).
getData()byte[]Trả lại dữ liệu file được nhúng.
getEmbeddedStream()PdfStreamTrả lại dòng file được nhúng từ /EF/F.
getPdfDictionary()PdfDictionaryTrở lại từ điển cơ bản.

See Also

 Tiếng Việt