/** * download file from storage server * * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @return file content/buff, return null if fail */ public byte[] download_file1(String file_id, long file_offset, long download_bytes) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return null; } return this.download_file(parts[0], parts[1], file_offset, download_bytes); }
/** * download file from storage server * * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @param callback the callback object, will call callback.recv() when data arrive * @return 0 success, return none zero errno if fail */ public int download_file1(String file_id, long file_offset, long download_bytes, DownloadCallback callback) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.download_file(parts[0], parts[1], file_offset, download_bytes, callback); }
/** * download file from storage server * * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @param local_filename the filename on local * @return 0 success, return none zero errno if fail */ public int download_file1(String file_id, long file_offset, long download_bytes, String local_filename) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.download_file(parts[0], parts[1], file_offset, download_bytes, local_filename); }
/** * download file from storage server * * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @return file content/buff, return null if fail */ public byte[] download_file1(String file_id, long file_offset, long download_bytes) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return null; } return this.download_file(parts[0], parts[1], file_offset, download_bytes); }
/** * download file from storage server * * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @param callback the callback object, will call callback.recv() when data arrive * @return 0 success, return none zero errno if fail */ public int download_file1(String file_id, long file_offset, long download_bytes, DownloadCallback callback) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.download_file(parts[0], parts[1], file_offset, download_bytes, callback); }
/** * download file from storage server * * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @return file content/buff, return null if fail */ public byte[] download_file1(String file_id, long file_offset, long download_bytes) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return null; } return this.download_file(parts[0], parts[1], file_offset, download_bytes); }
/** * download file from storage server * * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @param local_filename the filename on local * @return 0 success, return none zero errno if fail */ public int download_file1(String file_id, long file_offset, long download_bytes, String local_filename) throws IOException, FsException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.download_file(parts[0], parts[1], file_offset, download_bytes, local_filename); }
/** * download file from storage server * * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @return file content/buff, return null if fail */ public byte[] download_file1(String file_id, long file_offset, long download_bytes) throws IOException, FsException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return null; } return this.download_file(parts[0], parts[1], file_offset, download_bytes); }
/** * download file from storage server * * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @param local_filename the filename on local * @return 0 success, return none zero errno if fail */ public int download_file1(String file_id, long file_offset, long download_bytes, String local_filename) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.download_file(parts[0], parts[1], file_offset, download_bytes, local_filename); }
/** * download file from storage server * * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @param local_filename the filename on local * @return 0 success, return none zero errno if fail */ public int download_file1(String file_id, long file_offset, long download_bytes, String local_filename) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.download_file(parts[0], parts[1], file_offset, download_bytes, local_filename); }
/** * download file from storage server * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @return file content/buff, return null if fail */ public byte[] download_file1(String file_id, long file_offset, long download_bytes) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return null; } return this.download_file(parts[0], parts[1], file_offset, download_bytes); }
/** * download file from storage server * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @param local_filename the filename on local * @return 0 success, return none zero errno if fail */ public int download_file1(String file_id, long file_offset, long download_bytes, String local_filename) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.download_file(parts[0], parts[1], file_offset, download_bytes, local_filename); }
/** * download file from storage server * * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @param callback the callback object, will call callback.recv() when data arrive * @return 0 success, return none zero errno if fail */ public int download_file1(String file_id, long file_offset, long download_bytes, DownloadCallback callback) throws IOException, FsException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.download_file(parts[0], parts[1], file_offset, download_bytes, callback); }
/** * download file from storage server * * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @param callback the callback object, will call callback.recv() when data arrive * @return 0 success, return none zero errno if fail */ public int download_file1(String file_id, long file_offset, long download_bytes, DownloadCallback callback) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.download_file(parts[0], parts[1], file_offset, download_bytes, callback); }
/** * download file from storage server * @param file_id the file id(including group name and filename) * @param file_offset the start offset of the file * @param download_bytes download bytes, 0 for remain bytes from offset * @param callback the callback object, will call callback.recv() when data arrive * @return 0 success, return none zero errno if fail */ public int download_file1(String file_id, long file_offset, long download_bytes, DownloadCallback callback) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.download_file(parts[0], parts[1], file_offset, download_bytes, callback); }