| Package | Description |
|---|---|
| xyz.cofe.http | |
| xyz.cofe.http.download |
| Modifier and Type | Field and Description |
|---|---|
protected ContentFragments |
HttpDownloader.fragments |
protected ContentFragments |
HttpDownloader.ContentValidateEvent.fragments |
protected ContentFragments |
HttpDownloader.ContentValidateProgressEvent.sampleFragments |
| Modifier and Type | Method and Description |
|---|---|
ContentFragments |
ContentFragments.clone() |
static ContentFragments |
ContentFragments.createMd5(xyz.cofe.fs.File sourceFile,
int fragmentSize,
xyz.cofe.collection.Func2<Object,Long,Long> progress) |
static ContentFragments |
ContentFragments.createMd5(InputStream data,
int fragmentSize,
xyz.cofe.collection.Func1<Object,Long> progress) |
ContentFragments |
HttpDownloader.getFragments()
Фрагменты данных
|
ContentFragments |
HttpDownloader.ContentValidateEvent.getFragments() |
ContentFragments |
HttpDownloader.ContentValidateProgressEvent.getSampleFragments() |
| Modifier and Type | Method and Description |
|---|---|
protected HttpDownloader.CatchFirstStatus |
HttpDownloader.catchFirstResponse(Mirrors mirrors,
HttpRequest request,
HttpResponse response,
ContentFragments fragments)
Захвать первого ответа
|
protected void |
HttpListenerAdapter.downloaderAddedValidFragment(HttpDownloader.AddedValidFragmentEvent event,
HttpDownloader downloader,
ContentFragments cfs,
xyz.cofe.collection.set.EventSet<ContentFragment> valid,
ContentFragment cf) |
protected void |
HttpListenerAdapter.downloaderContentValidateProgress(HttpDownloader.ContentValidateProgressEvent event,
HttpDownloader downloader,
xyz.cofe.cbuffer.ContentBuffer contentBuffer,
ContentFragments sampleFragments,
ContentFragment sample,
int sampleNum,
int sampleTotal,
boolean hashMatched) |
protected void |
HttpListenerAdapter.downloaderRemovedInvalidFragment(HttpDownloader.RemovedInvalidFragmentEvent event,
HttpDownloader downloader,
ContentFragments cfs,
xyz.cofe.collection.set.EventSet<ContentFragment> valid,
ContentFragment cf) |
protected void |
HttpDownloader.run(Mirrors mirrors,
ContentFragments fragments)
Начало закачки
|
protected void |
HttpDownloader.setFragments(ContentFragments fragments)
Установка фрагментов
|
void |
HttpDownloader.start(ContentFragments fragments)
Возобновление скачивания
Можно вызывать в состоянии Prepare, Finished
|
protected void |
HttpDownloader.switchPartialDownload(Mirrors mirrors,
HttpRequest request,
HttpResponse firstRes,
ContentFragments fragments)
Переключение в режим фрагментарной загруки из потокового режима
|
| Constructor and Description |
|---|
AddedValidFragmentEvent(HttpDownloader downloader,
ContentFragments fragments,
xyz.cofe.collection.set.EventSet<ContentFragment> valid,
ContentFragment cf) |
ContentFragments(ContentFragments source,
Lock lock) |
ContentValidateEvent(HttpDownloader downloader,
ContentFragments fragments,
xyz.cofe.collection.set.EventSet<ContentFragment> valid) |
RemovedInvalidFragmentEvent(HttpDownloader downloader,
ContentFragments fragments,
xyz.cofe.collection.set.EventSet<ContentFragment> valid,
ContentFragment cf) |
| Modifier and Type | Field and Description |
|---|---|
protected ContentFragments |
ContentValidatorEvent.valid |
protected ContentFragments |
HashContentValidator.validFragments
Хэш - фрагменты контента
|
| Modifier and Type | Method and Description |
|---|---|
ContentFragments |
ContentValidatorEvent.getSampleFragments() |
ContentFragments |
HashContentValidator.getValidFragments()
Указывает Хэш - фрагменты контента
|
| Modifier and Type | Method and Description |
|---|---|
protected ContentFragment |
FastEqualsFragments.createFragment(ContentFragments cfragments,
long begin,
long end)
Создание фрагмента
|
protected ContentFragment |
EqualsFragments.createFragment(ContentFragments cfragments,
long begin,
long end)
Создание фрагмента
|
void |
InitFragments.initFragments(ContentFragments cfragments,
HttpResponse firstRes,
long contentLength)
Инициализирует массив фрагментов
|
void |
FastEqualsFragments.initFragments(ContentFragments cfragments,
HttpResponse firstRes,
long contentLength) |
void |
EqualsFragments.initFragments(ContentFragments cfragments,
HttpResponse firstRes,
long contentLength) |
static void |
FastEqualsFragments.initFragments(ContentFragments cfragments,
long contentLength,
int partSize,
long offset,
xyz.cofe.collection.Func3<ContentFragment,ContentFragments,Long,Long> createFragment) |
void |
HashContentValidator.setValidFragments(ContentFragments validFragments)
Указывает Хэш - фрагменты контента
|
ContentValidation |
HashContentValidator.validate(xyz.cofe.cbuffer.ContentBuffer cbuff,
ContentFragments fragments) |
ContentValidation |
ContentValidator.validate(xyz.cofe.cbuffer.ContentBuffer cbuff,
ContentFragments fragments)
Проверяет скаченный контент
|
protected void |
HashContentValidator.validate(xyz.cofe.cbuffer.ContentBuffer cbuff,
ContentFragments fragments,
ContentFragments valids,
LinkedHashSet<ContentFragment> failed,
LinkedHashSet<ContentFragment> failedAdds,
LinkedHashSet<ContentFragment> successSrcMD5Res)
Проверяет скаченное содержимое
|
| Modifier and Type | Method and Description |
|---|---|
static void |
FastEqualsFragments.initFragments(ContentFragments cfragments,
long contentLength,
int partSize,
long offset,
xyz.cofe.collection.Func3<ContentFragment,ContentFragments,Long,Long> createFragment) |
| Constructor and Description |
|---|
ContentValidatorEvent(ContentValidator src,
xyz.cofe.cbuffer.ContentBuffer cbuff,
ContentFragments valid) |
ContentValidatorProgressEvent(ContentValidator src,
xyz.cofe.cbuffer.ContentBuffer cbuff,
ContentFragments valid,
ContentFragment sample,
int sampleNum,
int sampleTotal,
boolean hashMatched) |
Copyright © 2017. All rights reserved.