Package net.markenwerk.utils.data.fetcher
-
Interface Summary Interface Description DataFetcher ADataFetcher
can fetch the entire content of a givenInputStream
into a freshbyte[]
or copy it into a givenOutputStream
.DataFetchProgressListener -
Class Summary Class Description AbstractBufferedDataFetcher AbstractBufferedDataFetcher
is a sensible base implementation ofDataFetcher
that uses abyte[]
as buffer, to while copying all bytes from anInputStream
to anOutputStream
by sequentially reading from theInputStream
into the buffer and then writing from the buffer to theOutputStream
.AbstractDataFetcher AbstractDataFetcher
is a sensible base implementation ofDataFetcher
.BufferedDataFetcher AbstractBufferedDataFetcher
is a sensible base implementation ofDataFetcher
that uses abyte[]
as buffer, while copying all bytes from anInputStream
to anOutputStream
by sequentially reading from theInputStream
into the buffer and then writing from the buffer to theOutputStream
.IdleDataFetchProgressListener AnIdleDataFetchProgressListener
is aDataFetchProgressListener
with empty methods. -
Exception Summary Exception Description DataFetchException ADataFetchException
is a specializedIOException
that indicates that a fetch operation of aDataFetcher
has failed.