FileDocCategorySizeDatePackage
EncodingChunk.javaAPI DocJaudiotagger 2.0.42780Wed Mar 30 16:11:50 BST 2011org.jaudiotagger.audio.asf.data

EncodingChunk

public class EncodingChunk extends Chunk
This class was intended to store the data of a chunk which contained the encoding parameters in textual form.
Since the needed parameters were found in other chunks the implementation of this class was paused.
TODO complete analysis.
author
Christian Laireiter

Fields Summary
private final List
strings
The read strings.
Constructors Summary
public EncodingChunk(BigInteger chunkLen)
Creates an instance.

param
chunkLen Length of current chunk.

        super(GUID.GUID_ENCODING, chunkLen);
        this.strings = new ArrayList<String>();
    
Methods Summary
public voidaddString(java.lang.String toAdd)
This method appends a String.

param
toAdd String to add.

        this.strings.add(toAdd);
    
public java.util.CollectiongetStrings()
This method returns a collection of all {@linkplain String Strings} which were added due {@link #addString(String)}.

return
Inserted Strings.

        return new ArrayList<String>(this.strings);
    
public java.lang.StringprettyPrint(java.lang.String prefix)
{@inheritDoc}

        final StringBuilder result = new StringBuilder(super
                .prettyPrint(prefix));
        this.strings.iterator();
        for (final String string : this.strings) {
            result.append(prefix).append("  | : ").append(string).append(
                    Utils.LINE_SEPARATOR);
        }
        return result.toString();