Class CopyFile
java.lang.Object
com.vdoc.sdk.commons.io.filecenter.impl.CopyFile
- All Implemented Interfaces:
ICopyable
Copy file
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCopyFile(IAttachment attachement) ConstructorConstructorCopyFile(String fileName, InputStream inputStream) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetinputStreampropertygetfileNamepropertyvoidsetFileName(String fileName) setfileNameproperty
-
Field Details
-
fileName
-
inputStream
-
-
Constructor Details
-
CopyFile
Constructor- Parameters:
attachement- the attachement
-
CopyFile
Constructor- Parameters:
file- the file- Throws:
FileNotFoundException- on error
-
CopyFile
Constructor- Parameters:
fileName- the fileNameinputStream- the input stream
-
-
Method Details
-
getFileName
getfileNameproperty- Specified by:
getFileNamein interfaceICopyable- Returns:
- get the fileName property
-
setFileName
setfileNameproperty- Parameters:
fileName- set the fileName property
-
getContent
getinputStreamproperty- Specified by:
getContentin interfaceICopyable- Returns:
- get the inputStream property
-