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

EncryptionChunk

public class EncryptionChunk extends Chunk
author
eric

Fields Summary
private String
keyID
private String
licenseURL
private String
protectionType
private String
secretData
private final ArrayList
strings
The read strings.
Constructors Summary
public EncryptionChunk(BigInteger chunkLen)
Creates an instance.

param
chunkLen Length of current chunk.

        super(GUID.GUID_CONTENT_ENCRYPTION, chunkLen);
        this.strings = new ArrayList<String>();
        this.secretData = "";
        this.protectionType = "";
        this.keyID = "";
        this.licenseURL = "";
    
Methods Summary
public voidaddString(java.lang.String toAdd)
This method appends a String.

param
toAdd String to add.

        this.strings.add(toAdd);
    
public java.lang.StringgetKeyID()
This method gets the keyID.

return

        return this.keyID;
    
public java.lang.StringgetLicenseURL()
This method gets the license URL.

return

        return this.licenseURL;
    
public java.lang.StringgetProtectionType()
This method gets the secret data.

return

        return this.protectionType;
    
public java.lang.StringgetSecretData()
This method gets the secret data.

return

        return this.secretData;
    
public java.util.CollectiongetStrings()
This method returns a collection of all {@link String}s which were addid 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));
        result.insert(0, Utils.LINE_SEPARATOR + prefix + " Encryption:"
                + Utils.LINE_SEPARATOR);
        result.append(prefix).append("	|->keyID ").append(this.keyID).append(
                Utils.LINE_SEPARATOR);
        result.append(prefix).append("	|->secretData ").append(this.secretData)
                .append(Utils.LINE_SEPARATOR);
        result.append(prefix).append("	|->protectionType ").append(
                this.protectionType).append(Utils.LINE_SEPARATOR);
        result.append(prefix).append("	|->licenseURL ").append(this.licenseURL)
                .append(Utils.LINE_SEPARATOR);
        this.strings.iterator();
        for (final String string : this.strings) {
            result.append(prefix).append("   |->").append(string).append(Utils.LINE_SEPARATOR);
        }
        return result.toString();
    
public voidsetKeyID(java.lang.String toAdd)
This method appends a String.

param
toAdd String to add.

        this.keyID = toAdd;
    
public voidsetLicenseURL(java.lang.String toAdd)
This method appends a String.

param
toAdd String to add.

        this.licenseURL = toAdd;
    
public voidsetProtectionType(java.lang.String toAdd)
This method appends a String.

param
toAdd String to add.

        this.protectionType = toAdd;
    
public voidsetSecretData(java.lang.String toAdd)
This method adds the secret data.

param
toAdd String to add.

        this.secretData = toAdd;