org.jaudiotagger.audio.asf.data
Class EncryptionChunk

java.lang.Object
  extended by org.jaudiotagger.audio.asf.data.Chunk
      extended by org.jaudiotagger.audio.asf.data.EncryptionChunk

public class EncryptionChunk
extends Chunk

Author:
eric

Field Summary
private  java.lang.String keyID
           
private  java.lang.String licenseURL
           
private  java.lang.String protectionType
           
private  java.lang.String secretData
           
private  java.util.ArrayList<java.lang.String> strings
          The read strings.
 
Fields inherited from class org.jaudiotagger.audio.asf.data.Chunk
chunkLength, guid, position
 
Constructor Summary
EncryptionChunk(java.math.BigInteger chunkLen)
          Creates an instance.
 
Method Summary
 void addString(java.lang.String toAdd)
          This method appends a String.
 java.lang.String getKeyID()
          This method gets the keyID.
 java.lang.String getLicenseURL()
          This method gets the license URL.
 java.lang.String getProtectionType()
          This method gets the secret data.
 java.lang.String getSecretData()
          This method gets the secret data.
 java.util.Collection<java.lang.String> getStrings()
          This method returns a collection of all Strings which were addid due addString(String).
 java.lang.String prettyPrint(java.lang.String prefix)
          This method creates a String containing useful information prepared to be printed on STD-OUT.
 void setKeyID(java.lang.String toAdd)
          This method appends a String.
 void setLicenseURL(java.lang.String toAdd)
          This method appends a String.
 void setProtectionType(java.lang.String toAdd)
          This method appends a String.
 void setSecretData(java.lang.String toAdd)
          This method adds the secret data.
 
Methods inherited from class org.jaudiotagger.audio.asf.data.Chunk
getChunckEnd, getChunkEnd, getChunkLength, getGuid, getPosition, setPosition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

keyID

private java.lang.String keyID

licenseURL

private java.lang.String licenseURL

protectionType

private java.lang.String protectionType

secretData

private java.lang.String secretData

strings

private final java.util.ArrayList<java.lang.String> strings
The read strings.

Constructor Detail

EncryptionChunk

public EncryptionChunk(java.math.BigInteger chunkLen)
Creates an instance.

Parameters:
chunkLen - Length of current chunk.
Method Detail

addString

public void addString(java.lang.String toAdd)
This method appends a String.

Parameters:
toAdd - String to add.

getKeyID

public java.lang.String getKeyID()
This method gets the keyID.

Returns:

getLicenseURL

public java.lang.String getLicenseURL()
This method gets the license URL.

Returns:

getProtectionType

public java.lang.String getProtectionType()
This method gets the secret data.

Returns:

getSecretData

public java.lang.String getSecretData()
This method gets the secret data.

Returns:

getStrings

public java.util.Collection<java.lang.String> getStrings()
This method returns a collection of all Strings which were addid due addString(String).

Returns:
Inserted Strings.

prettyPrint

public java.lang.String prettyPrint(java.lang.String prefix)
This method creates a String containing useful information prepared to be printed on STD-OUT.
This method is intended to be overwritten by inheriting classes.

Overrides:
prettyPrint in class Chunk
Parameters:
prefix - each line gets this string prepended.
Returns:
Information of current Chunk Object.

setKeyID

public void setKeyID(java.lang.String toAdd)
This method appends a String.

Parameters:
toAdd - String to add.

setLicenseURL

public void setLicenseURL(java.lang.String toAdd)
This method appends a String.

Parameters:
toAdd - String to add.

setProtectionType

public void setProtectionType(java.lang.String toAdd)
This method appends a String.

Parameters:
toAdd - String to add.

setSecretData

public void setSecretData(java.lang.String toAdd)
This method adds the secret data.

Parameters:
toAdd - String to add.