Package de.xima.fc.workflow.data
Class GenericFormPersistFile
java.lang.Object
de.xima.fc.workflow.data.GenericFormPersistFile
Describes the data of a generic form persist file, whose exact meaning has yet to be determined.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGenericFormPersistFile
(String fileName, byte[] fileContent) Creates a new generic persist file with the given data. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Optional<com.alibaba.fastjson.JSONObject>
getXml()
boolean
isHasExtension
(String extension) boolean
-
Constructor Details
-
GenericFormPersistFile
Creates a new generic persist file with the given data.- Parameters:
fileName
- Name of the file.fileContent
- Byte content of the file.
-
-
Method Details
-
getExtension
- Returns:
- Extension of the file.
-
getFileContent
public byte[] getFileContent()- Returns:
- Byte content of the file.
-
getFileName
- Returns:
- Name of the file.
-
getJsonObject
- Returns:
- The file content as a JSON object, if it can be parsed as such.
-
getPlainText
- Returns:
- The file content as plain text, if it can be parsed as such.
-
getXml
- Returns:
- The file content as XML, if it can be parsed as such.
-
isHasExtension
- Parameters:
extension
- An extension to check, with or without a leading dot.- Returns:
- Whether this file has the given extension.
-
isHasPdfSignature
public boolean isHasPdfSignature() -
getPdfInfo
-