Package net.markenwerk.utils.data.fetcher
-
Interface Summary Interface Description DataFetcher ADataFetchercan fetch the entire content of a givenInputStreaminto a freshbyte[]or copy it into a givenOutputStream.DataFetchProgressListener -
Class Summary Class Description AbstractBufferedDataFetcher AbstractBufferedDataFetcheris a sensible base implementation ofDataFetcherthat uses abyte[]as buffer, to while copying all bytes from anInputStreamto anOutputStreamby sequentially reading from theInputStreaminto the buffer and then writing from the buffer to theOutputStream.AbstractDataFetcher AbstractDataFetcheris a sensible base implementation ofDataFetcher.BufferedDataFetcher AbstractBufferedDataFetcheris a sensible base implementation ofDataFetcherthat uses abyte[]as buffer, while copying all bytes from anInputStreamto anOutputStreamby sequentially reading from theInputStreaminto the buffer and then writing from the buffer to theOutputStream.IdleDataFetchProgressListener AnIdleDataFetchProgressListeneris aDataFetchProgressListenerwith empty methods. -
Exception Summary Exception Description DataFetchException ADataFetchExceptionis a specializedIOExceptionthat indicates that a fetch operation of aDataFetcherhas failed.