FileDocCategorySizeDatePackage
MetadataBlockDataPadding.javaAPI DocJaudiotagger 2.0.41935Wed Mar 30 16:11:46 BST 2011org.jaudiotagger.audio.flac.metadatablock

MetadataBlockDataPadding

public class MetadataBlockDataPadding extends Object implements MetadataBlockData
Padding Block

This block allows for an arbitrary amount of padding. The contents of a PADDING block have no meaning. This block is useful when it is known that metadata will be edited after encoding; the user can instruct the encoder to reserve a PADDING block of sufficient size so that when metadata is added, it will simply overwrite the padding (which is relatively quick) instead of having to insert it into the right place in the existing file (which would normally require rewriting the entire file).

Fields Summary
private int
length
Constructors Summary
public MetadataBlockDataPadding(int length)

        this.length = length;
    
Methods Summary
public byte[]getBytes()

        byte[] data = new byte[length];
        for (int i = 0; i < length; i++)
        {
            data[i] = 0;
        }
        return data;
    
public intgetLength()

        return length;