org.jaudiotagger.audio.flac.metadatablock
Class MetadataBlockDataPadding

java.lang.Object
  extended by org.jaudiotagger.audio.flac.metadatablock.MetadataBlockDataPadding
All Implemented Interfaces:
MetadataBlockData

public class MetadataBlockDataPadding
extends java.lang.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).


Field Summary
private  int length
           
 
Constructor Summary
MetadataBlockDataPadding(int length)
           
 
Method Summary
 byte[] getBytes()
           
 int getLength()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

length

private int length
Constructor Detail

MetadataBlockDataPadding

public MetadataBlockDataPadding(int length)
Method Detail

getBytes

public byte[] getBytes()
Specified by:
getBytes in interface MetadataBlockData
Returns:
the rawdata as it will be written to file

getLength

public int getLength()
Specified by:
getLength in interface MetadataBlockData
Returns:
the length in bytes that the data uses when written to file