devpia.dextuploadnj
Enum FileCopyOption
- Minimum version supported
- 1.1.0
- Minimum support environment
- JRE 1.6
- Description
-
Defines the methods of copying files.
Enum constant Description Stream Copy the file using the buffer stream. This is the basic copy method used up to the existing 1.0.x version. It is affected by the setFileCopyBufferSize method of the Environment object. Channel Copy the file using transferTo method of the NIO(Non-blocking I/O) Channel class. It has higher performance than the existing stream method. This is default. ScatterGather Copy the file using Scatter/Gather method with the NIO Channel class. It is affected by the setFileCopyBufferSize method of the Environment object. MemoryMapping Copy the file using the NIO Channel class and memory mapping method. The method for setting FileCopyOption is as follows.
# When set direcly to an Environment object Environment env = new Environment(); env.setFileCopyOption(FileCopyOption.Stream); # When set as a property of an Environment bean <property name="fileCopyOption" value="Stream"/> # When set a parameter of the ExtensionFileUploadFilter or DEXTUploadNJSpringExtensionUploadFilter <init-param> <param-name>fileCopyOption</param-name> <param-value>Stream</param-value> </init-param>