Class FileContent
java.lang.Object
com.technia.tif.enovia.integration.FileContent
Represents a file content: file name and input stream providing the content.
- Since:
- 2021.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileContentCreates file content based on a File.static FileContentCreates file content based on a URL.static FileContentCreates file content based on a URL and file name.
-
Constructor Details
-
FileContent
-
-
Method Details
-
getInputStream
- Throws:
IOException
-
getFileName
-
fromFile
Creates file content based on a File.- Parameters:
file- File- Returns:
- FileContentProviderResult
-
fromURL
Creates file content based on a URL. NOTE: Detects the file name from URL path.- Parameters:
url- URL to file- Returns:
- FileContentProviderResult
-
fromURL
Creates file content based on a URL and file name.- Parameters:
url- URL to filefileName- The name of the file- Returns:
- FileContentProviderResult
-