রিমোটজিপ
public class RemoteZip
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.RemoteZip |
দূরবর্তী কোনো জিপ ফাইলের ভেতর থাকা স্বতন্ত্র ফাইলগুলো আনজিপ করার ইউটিলিটি।
সারসংক্ষেপ
সরকারি নির্মাণকারী | |
|---|---|
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader)নির্মাতা | |
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64) | |
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64, boolean useCache)নির্মাতা | |
জনসাধারণের পদ্ধতি | |
|---|---|
void | downloadFiles (File destDir, List< CentralDirectoryInfo > originalFiles)রিমোট জিপ ফাইল থেকে নির্দিষ্ট ফাইলগুলো ডাউনলোড করুন। |
long | getLastAccess ()এই অবজেক্টটি শেষবার কখন অ্যাক্সেস করা হয়েছিল তা জানুন। |
String | getRemoteFilePath ()রিমোট জিপ আর্টিফ্যাক্টটির রিমোট ফাইল পাথটি নিন। |
List< CentralDirectoryInfo > | getZipEntries ()একটি দূরবর্তী জিপ ফাইলের এন্ট্রিগুলো সংগ্রহ করে। |
void | setLastAccess (long timestamp)অবজেক্টটির সর্বশেষ অ্যাক্সেস টাইমস্ট্যাম্প আপডেট করুন। |
সরকারি নির্মাণকারী
রিমোটজিপ
public RemoteZip (String remoteFilePath,
long fileSize,
IFileDownloader downloader)নির্মাতা
| প্যারামিটার | |
|---|---|
remoteFilePath | String : ডাউনলোড করার ফাইলের রিমোট পাথ। |
fileSize | long : রিমোট ফাইলের আকার। |
downloader | IFileDownloader : একটি @{link IFileDownloader} যা দূরবর্তী ফাইল ডাউনলোড করতে ব্যবহৃত হয়। |
রিমোটজিপ
public RemoteZip (String remoteFilePath,
long fileSize,
IFileDownloader downloader,
boolean useZip64)| প্যারামিটার | |
|---|---|
remoteFilePath | String |
fileSize | long |
downloader | IFileDownloader |
useZip64 | boolean |
রিমোটজিপ
public RemoteZip (String remoteFilePath,
long fileSize,
IFileDownloader downloader,
boolean useZip64,
boolean useCache)নির্মাতা
| প্যারামিটার | |
|---|---|
remoteFilePath | String : ডাউনলোড করার ফাইলের রিমোট পাথ। |
fileSize | long : রিমোট ফাইলের আকার। |
downloader | IFileDownloader : একটি @{link IFileDownloader} যা দূরবর্তী ফাইল ডাউনলোড করতে ব্যবহৃত হয়। |
useZip64 | boolean : আংশিক ডাউনলোডের জন্য zip64 ফরম্যাট ব্যবহার করা হবে কি না। |
useCache | boolean |
জনসাধারণের পদ্ধতি
ফাইল ডাউনলোড করুন
public void downloadFiles (File destDir,
List<CentralDirectoryInfo> originalFiles)রিমোট জিপ ফাইল থেকে নির্দিষ্ট ফাইলগুলো ডাউনলোড করুন।
| প্যারামিটার | |
|---|---|
destDir | File : ডাউনলোড করা ফাইলগুলো রাখার জন্য ডিরেক্টরি। |
originalFiles | List : দূরবর্তী জিপ ফাইল থেকে ডাউনলোড করার জন্য এন্ট্রিগুলির একটি তালিকা। |
| নিক্ষেপ | |
|---|---|
| com.android.tradefed.build.BuildRetrievalError |
| java.io.IOException |
BuildRetrievalError | |
IOException | |
getLastAccess
public long getLastAccess ()
এই অবজেক্টটি শেষবার কখন অ্যাক্সেস করা হয়েছিল তা জানুন।
| ফেরত | |
|---|---|
long | |
getRemoteFilePath
public String getRemoteFilePath ()
রিমোট জিপ আর্টিফ্যাক্টটির রিমোট ফাইল পাথটি নিন।
| ফেরত | |
|---|---|
String | |
getZipEntries
public List<CentralDirectoryInfo> getZipEntries ()
একটি দূরবর্তী জিপ ফাইলের এন্ট্রিগুলো সংগ্রহ করে।
| ফেরত | |
|---|---|
List< CentralDirectoryInfo > | |
| নিক্ষেপ | |
|---|---|
BuildRetrievalError | যদি ফাইলটি ডাউনলোড করা না যায়। |
IOException | |
শেষ অ্যাক্সেস সেট করুন
public void setLastAccess (long timestamp)
অবজেক্টটির সর্বশেষ অ্যাক্সেস টাইমস্ট্যাম্প আপডেট করুন।
| প্যারামিটার | |
|---|---|
timestamp | long |