Package tv.hd3g.transfertfiles.filters
Class DataExchangeFilterInputStream
- java.lang.Object
-
- tv.hd3g.transfertfiles.filters.DataExchangeFilterInputStream
-
- All Implemented Interfaces:
DataExchangeFilter
- Direct Known Subclasses:
DataExchangeFilterDecompress
@Deprecated(forRemoval=true) public class DataExchangeFilterInputStream extends Object implements DataExchangeFilter
Deprecated, for removal: This API element is subject to removal in a future version.Not reusable Buggy implementation: need to async DataExchangeFilterInputStream (real transfert pipeline)
-
-
Field Summary
-
Fields inherited from interface tv.hd3g.transfertfiles.filters.DataExchangeFilter
DEFAULT_BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description DataExchangeFilterInputStream(tv.hd3g.transfertfiles.filters.UnaryIOExceptionOperator<InputStream> streamProvider)Deprecated, for removal: This API element is subject to removal in a future version.DataExchangeFilterInputStream(tv.hd3g.transfertfiles.filters.UnaryIOExceptionOperator<InputStream> streamProvider, int defaultBufferSize)Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BufferVaultapplyDataFilter(boolean last, BufferVault dataSource)Deprecated, for removal: This API element is subject to removal in a future version.intensureMinDataSourcesDataLength()Deprecated, for removal: This API element is subject to removal in a future version.Ensure to all applyDataFilter call will contain a total dataSources size equals/more than with this value.voidonCancelTransfert()Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tv.hd3g.transfertfiles.filters.DataExchangeFilter
getFilterName
-
-
-
-
Constructor Detail
-
DataExchangeFilterInputStream
public DataExchangeFilterInputStream(tv.hd3g.transfertfiles.filters.UnaryIOExceptionOperator<InputStream> streamProvider)
Deprecated, for removal: This API element is subject to removal in a future version.
-
DataExchangeFilterInputStream
public DataExchangeFilterInputStream(tv.hd3g.transfertfiles.filters.UnaryIOExceptionOperator<InputStream> streamProvider, int defaultBufferSize)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
applyDataFilter
public BufferVault applyDataFilter(boolean last, BufferVault dataSource) throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
applyDataFilterin interfaceDataExchangeFilter- Parameters:
last- if true, you should use flush/close internal needs and return last responses, because applyDataFilter will never be called for the current instance.- Returns:
- empty for "ignore" filter/data collector filter null for stop data transfert operation returned BufferVault can be re-used here after, and can be empty after call
- Throws:
IOException
-
ensureMinDataSourcesDataLength
public int ensureMinDataSourcesDataLength()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DataExchangeFilterEnsure to all applyDataFilter call will contain a total dataSources size equals/more than with this value. Else applyDataFilter with last = true will be called- Specified by:
ensureMinDataSourcesDataLengthin interfaceDataExchangeFilter- Returns:
- byte count
-
onCancelTransfert
public void onCancelTransfert()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
onCancelTransfertin interfaceDataExchangeFilter
-
-