java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.LocalFile
- Enclosing class:
- TdApi
Represents a local file.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
True, if the file can be deleted.boolean
True, if it is possible to download or generate the file.static final int
long
If isDownloadingCompleted is false, then only some prefix of the file starting from downloadOffset is ready to be read.long
Total downloaded file size, in bytes.long
Download will be started from this offset.boolean
True, if the file is currently being downloaded (or a local copy is being generated by some other means).boolean
True, if the local copy is fully available.Local path to the locally available file part; may be empty. -
Constructor Summary
-
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
path
Local path to the locally available file part; may be empty. -
canBeDownloaded
public boolean canBeDownloadedTrue, if it is possible to download or generate the file. -
canBeDeleted
public boolean canBeDeletedTrue, if the file can be deleted. -
isDownloadingActive
public boolean isDownloadingActiveTrue, if the file is currently being downloaded (or a local copy is being generated by some other means). -
isDownloadingCompleted
public boolean isDownloadingCompletedTrue, if the local copy is fully available. -
downloadOffset
public long downloadOffsetDownload will be started from this offset. downloadedPrefixSize is calculated from this offset. -
downloadedPrefixSize
public long downloadedPrefixSizeIf isDownloadingCompleted is false, then only some prefix of the file starting from downloadOffset is ready to be read. downloadedPrefixSize is the size of that prefix in bytes. -
downloadedSize
public long downloadedSizeTotal downloaded file size, in bytes. Can be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
LocalFile
public LocalFile()Represents a local file. -
LocalFile
public LocalFile(String path, boolean canBeDownloaded, boolean canBeDeleted, boolean isDownloadingActive, boolean isDownloadingCompleted, long downloadOffset, long downloadedPrefixSize, long downloadedSize) Represents a local file.- Parameters:
path
- String Local path to the locally available file part; may be empty.canBeDownloaded
- boolean True, if it is possible to download or generate the file.canBeDeleted
- boolean True, if the file can be deleted.isDownloadingActive
- boolean True, if the file is currently being downloaded (or a local copy is being generated by some other means).isDownloadingCompleted
- boolean True, if the local copy is fully available.downloadOffset
- long Download will be started from this offset. downloadedPrefixSize is calculated from this offset.downloadedPrefixSize
- long If isDownloadingCompleted is false, then only some prefix of the file starting from downloadOffset is ready to be read. downloadedPrefixSize is the size of that prefix in bytes.downloadedSize
- long Total downloaded file size, in bytes. Can be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage.
-
LocalFile
Represents a local file.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-