Fragments.Event, Fragments.ListenerdefCreateFragment, defIntersecResolver, defSorter, eventQu, listeners, listenersLock, lock, sorterByBegin, sorterByInstanceID, sorterBySize, syncFireListeners, unionIntersecResolver| Constructor and Description |
|---|
ContentFragments() |
ContentFragments(ContentFragments source,
Lock lock) |
ContentFragments(Iterable<Fragment> source) |
ContentFragments(Iterable<Fragment> source,
Lock lock) |
ContentFragments(Lock lock) |
| Modifier and Type | Method and Description |
|---|---|
ContentFragments |
clone() |
protected Fragment |
createFagment(long begin,
long end) |
static ContentFragments |
createMd5(xyz.cofe.fs.File sourceFile,
int fragmentSize,
xyz.cofe.collection.Func2<Object,Long,Long> progress) |
static ContentFragments |
createMd5(InputStream data,
int fragmentSize,
xyz.cofe.collection.Func1<Object,Long> progress) |
List<ContentFragment> |
getNotDownloaded()
Возвращает список не закаченых фрагментов
|
long |
getTotalDownloadedSize()
Возвращает сумарный объем скаченых данных
|
long |
getTotalSize()
Возвращает сумарный объем фрагментов
|
add, add, addAll, addAll, addListener, addListener, clear, contains, containsAll, find, findHoles, findHoles, findIntersections, findZeroSize, fireEvent, fireEventQu, get, getListeners, getLock, indexOf, isEmpty, isEquals, iterator, lastIndexOf, listeners, listIterator, listIterator, rangePredicate, remove, remove, removeAll, removeIntersections, removeIntersections, removeListener, removeSameRange, retainAll, set, size, sizeEqualsPredicate, sort, subList, syncRun, toArray, toArray, toString, visitEachEachWithoutPositionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic ContentFragments()
public ContentFragments(Lock lock)
public ContentFragments(ContentFragments source, Lock lock)
public ContentFragments clone()
protected Fragment createFagment(long begin, long end)
createFagment in class Fragmentspublic long getTotalDownloadedSize()
public long getTotalSize()
public List<ContentFragment> getNotDownloaded()
public static ContentFragments createMd5(xyz.cofe.fs.File sourceFile, int fragmentSize, xyz.cofe.collection.Func2<Object,Long,Long> progress)
public static ContentFragments createMd5(InputStream data, int fragmentSize, xyz.cofe.collection.Func1<Object,Long> progress) throws IOException
IOExceptionCopyright © 2017. All rights reserved.