Maven module :un.storage : archive-xz :
Class : un.storage.archive.xz.DeltaOptions
Extends/Implements : un.storage.archive.xz.FilterOptions
Subclasses : -

Delta filter options. The Delta filter can be used only as a non-last
filter in the chain, for example Delta + LZMA2.


Currently only simple byte-wise delta is supported. The only option
is the delta distance, which you should set to match your data.
It's not possible to provide a generic default value for it.


For example, with distance = 2 and eight-byte input
A1 B1 A2 B3 A3 B5 A4 B7, the output will be A1 B1 01 02 01 02 01 02.


The Delta filter can be good with uncompressed bitmap images. It can
also help with PCM audio, although special-purpose compressors like
FLAC will give much smaller result at much better compression speed.



Variables : DISTANCE_MIN, DISTANCE_MAX
Functions : DeltaOptions, DeltaOptions, setDistance, getDistance, getEncoderMemoryUsage, getOutputStream, getDecoderMemoryUsage, getInputStream, getFilterEncoder, clone



Smallest supported delta calculation distance.
public int DISTANCE_MIN


Largest supported delta calculation distance.
public int DISTANCE_MAX



Creates new Delta options and sets the delta distance to 1 byte.
public void DeltaOptions ()


Creates new Delta options and sets the distance to the given value.
public void DeltaOptions (int distance)


Sets the delta distance in bytes. The new distance must be in
the range [DISTANCE_MIN, DISTANCE_MAX].
public void setDistance (int distance)


Gets the delta distance.
public int getDistance ()

public int getEncoderMemoryUsage ()

public FinishableOutputStream getOutputStream (FinishableOutputStream out)

public int getDecoderMemoryUsage ()

public InputStream getInputStream (InputStream in)

FilterEncoder getFilterEncoder ()

public Object clone ()