| Package | Description |
|---|---|
| xyz.cofe.cbuffer | |
| xyz.cofe.common |
Работа с деревом
|
| xyz.cofe.http | |
| xyz.cofe.http.download |
| Modifier and Type | Class and Description |
|---|---|
class |
WrapperContentBuffer<T extends ContentBuffer>
Буфер обвертка
|
| Modifier and Type | Class and Description |
|---|---|
class |
CFileBuffer
Файловый буфер
|
class |
FileLockBuffer
Буфер с файловой блокировкой
|
class |
MemContentBuffer
Буфер в памяти
|
class |
RAFBuffer |
class |
SBCBuffer
Буфер для работы через интерфейс SeekableByteChannel
|
class |
SyncContentBuffer
Синхронная работа с буфером
|
class |
WrapperContentBuffer<T extends ContentBuffer>
Буфер обвертка
|
| Modifier and Type | Field and Description |
|---|---|
protected T |
WrapperContentBuffer.buffer |
protected ContentBuffer |
SyncContentBuffer.buffer |
protected ContentBuffer |
ContentBufferOutputStream.contentBuffer |
protected ContentBuffer |
ContentBufferEvent.contentBuffer |
protected ContentBuffer |
ContentBufferInputStream.contentBuffer |
| Modifier and Type | Method and Description |
|---|---|
ContentBuffer |
MemContentBuffer.clone() |
ContentBuffer |
SBCBuffer.clone() |
ContentBuffer |
ContentBufferEvent.getContentBuffer() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
ImmutableFragment.md5(ContentBuffer cbuff)
Вычисление md5 для фрагмента буфера
|
static byte[] |
ImmutableFragment.md5(ImmutableFragment frg,
ContentBuffer cbuff)
Вычисление md5 для фрагмента буфера
|
String |
ImmutableFragment.md5str(ContentBuffer cbuff)
Вычисление md5 для фрагмента буфера
|
static String |
ImmutableFragment.md5str(ImmutableFragment frg,
ContentBuffer cbuff)
Вычисление md5 для фрагмента буфера
|
long |
ContentBufferFuncs.readStreamInto(InputStream stream,
ContentBuffer cbuf)
Записывает поток в буффер
|
long |
ContentBufferFuncs.readStreamInto(InputStream stream,
long skip,
long maxRead,
ContentBuffer cbuf,
long bufferBeginIndex,
long bufferEndIndexExclusive,
int blockSize,
Func1<Object,Long> progress)
Записывает поток в буффер
|
| Constructor and Description |
|---|
ContentBufferEvent(ContentBuffer src) |
ContentBufferInputStream(ContentBuffer buffer)
Конструктор
|
ContentBufferInputStream(ContentBuffer buffer,
long beginIndex)
Конструктор
|
ContentBufferInputStream(ContentBuffer buffer,
long beginIndex,
long endIndexExclusive)
Конструктор
|
ContentBufferInputStream(ContentBuffer buffer,
long beginIndex,
long endIndexExclusive,
Lock lock)
Конструктор
|
ContentBufferOutputStream(ContentBuffer buffer) |
ContentBufferOutputStream(ContentBuffer buffer,
long beginIndex) |
ContentBufferOutputStream(ContentBuffer buffer,
long beginIndex,
long endIndexExclusive) |
ContentBufferOutputStream(ContentBuffer buffer,
long beginIndex,
long endIndexExclusive,
Lock lock) |
SizeChangedEvent(ContentBuffer src,
long oldSize,
long newSize) |
SyncContentBuffer(ContentBuffer buffer) |
SyncContentBuffer(ContentBuffer buffer,
Object sync) |
SyncContentBuffer(ContentBuffer buffer,
Object sync,
boolean copyLock)
Конструктор
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
Hash.hash(String alg,
ContentBuffer buffer,
long beginIndex,
long endIndex,
int buffsize)
Подсчет хэша указанного набора байт
|
byte[] |
Hash.md5(ContentBuffer buffer,
ImmutableFragment fragment,
int blockSize) |
byte[] |
Hash.md5(ContentBuffer buffer,
long beginIndex,
long endIndex,
int buffsize)
Подсчет md5 указанного набора байт
|
byte[] |
Hash.sha1(ContentBuffer buffer,
ImmutableFragment fragment,
int blockSize) |
byte[] |
Hash.sha1(ContentBuffer buffer,
long beginIndex,
long endIndex,
int buffsize)
Подсчет md5 указанного набора байт
|
| Modifier and Type | Field and Description |
|---|---|
protected ContentBuffer |
HttpResponse.contentBuffer |
protected ContentBuffer |
HttpRequest.contentBuffer |
protected ContentBuffer |
HttpDownloader.contentBuffer
Буфер данных
|
protected ContentBuffer |
HttpDownloader.ContentValidateProgressEvent.contentBuffer |
| Modifier and Type | Method and Description |
|---|---|
ContentBuffer |
HttpResponse.getContentBuffer() |
ContentBuffer |
HttpRequest.getContentBuffer()
Указывает буффер для content-а
|
ContentBuffer |
HttpDownloader.getContentBuffer()
Указывает буффер для content-а
|
ContentBuffer |
HttpDownloader.ContentValidateProgressEvent.getContentBuffer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
HttpListenerAdapter.downloaderContentValidateProgress(HttpDownloader.ContentValidateProgressEvent event,
HttpDownloader downloader,
ContentBuffer contentBuffer,
ContentFragments sampleFragments,
ContentFragment sample,
int sampleNum,
int sampleTotal,
boolean hashMatched) |
void |
HttpRequest.setContentBuffer(ContentBuffer contentBuffer)
Указывает буффер для content-а
|
void |
HttpDownloader.setContentBuffer(ContentBuffer contentBuffer)
Указывает буффер для content-а
|
| Modifier and Type | Field and Description |
|---|---|
protected ContentBuffer |
GetPartBuilder.buffer |
protected ContentBuffer |
ContentValidatorEvent.cbuff |
| Modifier and Type | Method and Description |
|---|---|
ContentBuffer |
ContentValidatorEvent.getContentBuffer() |
| Modifier and Type | Method and Description |
|---|---|
ContentValidation |
ContentValidator.validate(ContentBuffer cbuff,
ContentFragments fragments)
Проверяет скаченный контент
|
ContentValidation |
HashContentValidator.validate(ContentBuffer cbuff,
ContentFragments fragments) |
protected void |
HashContentValidator.validate(ContentBuffer cbuff,
ContentFragments fragments,
ContentFragments valids,
LinkedHashSet<ContentFragment> failed,
LinkedHashSet<ContentFragment> failedAdds,
LinkedHashSet<ContentFragment> successSrcMD5Res)
Проверяет скаченное содержимое
|
| Constructor and Description |
|---|
ContentValidatorEvent(ContentValidator src,
ContentBuffer cbuff,
ContentFragments valid) |
ContentValidatorProgressEvent(ContentValidator src,
ContentBuffer cbuff,
ContentFragments valid,
ContentFragment sample,
int sampleNum,
int sampleTotal,
boolean hashMatched) |
GetPartBuilder(HttpDownloader downloader,
Mirrors mirrors,
HttpRequest request,
ContentBuffer contentBuffer)
Конструктор
|
Copyright © 2018. All rights reserved.