Interface PdfArtifact
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
ReportArtifact
與 authoring model 無關的完成 PDF;呼叫端擁有並負責 close。
關閉後不可再開串流;已開串流可讀完,最後一個串流關閉時刪除暫存檔。
close 可重複呼叫,清理失敗只記 WARN,不取代產生或保存結果。
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()文件時間,不是保存期限的起算時間。filename()default List<PdfDiagnostic> 固定版面的幾何診斷;其他產物及舊實作預設沒有診斷。intlongsize()longtransferTo(OutputStream out) 不關閉 out;I/O 失敗時呼叫端須捨棄部分輸出。
-
Method Details
-
contentType
String contentType() -
filename
String filename() -
size
long size() -
pageCount
int pageCount() -
createdAt
Instant createdAt()文件時間,不是保存期限的起算時間。 -
layoutDiagnostics
固定版面的幾何診斷;其他產物及舊實作預設沒有診斷。 -
openStream
InputStream openStream() -
transferTo
不關閉 out;I/O 失敗時呼叫端須捨棄部分輸出。 -
close
void close()- Specified by:
closein interfaceAutoCloseable
-