다음을 통해 공유


ZipEntry.SetCreationTime(FileTime) Method

Definition

Sets the creation time of the entry.

[Android.Runtime.Register("setCreationTime", "(Ljava/nio/file/attribute/FileTime;)Ljava/util/zip/ZipEntry;", "GetSetCreationTime_Ljava_nio_file_attribute_FileTime_Handler", ApiSince=26)]
public virtual Java.Util.Zip.ZipEntry? SetCreationTime (Java.Nio.FileNio.Attributes.FileTime? time);
[<Android.Runtime.Register("setCreationTime", "(Ljava/nio/file/attribute/FileTime;)Ljava/util/zip/ZipEntry;", "GetSetCreationTime_Ljava_nio_file_attribute_FileTime_Handler", ApiSince=26)>]
abstract member SetCreationTime : Java.Nio.FileNio.Attributes.FileTime -> Java.Util.Zip.ZipEntry
override this.SetCreationTime : Java.Nio.FileNio.Attributes.FileTime -> Java.Util.Zip.ZipEntry

Parameters

time
FileTime

The creation time of the entry

Returns

This zip entry

Attributes

Remarks

Sets the creation time of the entry.

If set, the creation time will be stored into the extended timestamp fields of entry's optional extra data, when output to a ZIP file or ZIP file formatted stream.

Added in 1.8.

Java documentation for java.util.zip.ZipEntry.setCreationTime(java.nio.file.attribute.FileTime).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to