public static final class FileTypes.Info.Builder extends Object
FileTypes.Info.| Constructor and Description |
|---|
FileTypes.Info.Builder(String name,
long size,
boolean cached,
String version)
Constructor with parameters for the required properties of
FileTypes.Info. |
| Modifier and Type | Method and Description |
|---|---|
FileTypes.Info |
build() |
FileTypes.Info.Builder |
setChecksumInfo(FileTypes.ChecksumInfo checksumInfo)
A checksum for validating the content of the file.
|
public FileTypes.Info.Builder(String name, long size, boolean cached, String version)
FileTypes.Info.public FileTypes.Info.Builder setChecksumInfo(FileTypes.ChecksumInfo checksumInfo)
This value can be used to verify that a transfer was completed without errors.
A checksum cannot always be calculated, and the value will benull if
the file does not have content.checksumInfo - New value for the property.public FileTypes.Info build()
Copyright © 2016. All Rights Reserved.