com.dusbabek.lib.id3
Class CommentFrame

java.lang.Object
  extended by com.dusbabek.lib.id3.Frame
      extended by com.dusbabek.lib.id3.CommentFrame

public class CommentFrame
extends Frame

Specialized frame used to store comments.

To do:
do not ignore text encoding and language values. I don't understand what makes a comment so special. Couldn't a text frame have been used? Notice that my implementation more or less ignores the description field.

Constructor Summary
CommentFrame(FrameHeader header, byte[] data)
          create a comment frame from a header and raw data.
CommentFrame(java.lang.String comment, int version)
          create a comment frame.
 
Method Summary
 java.lang.String getComment()
           
 java.lang.String getDescription()
           
 
Methods inherited from class com.dusbabek.lib.id3.Frame
getData, getHeader, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentFrame

public CommentFrame(java.lang.String comment,
                    int version)
             throws java.io.IOException
create a comment frame.

Parameters:
comment - String the comment.
version - int tag version.
Throws:
java.io.IOException

CommentFrame

public CommentFrame(FrameHeader header,
                    byte[] data)
             throws java.io.IOException
create a comment frame from a header and raw data.

Parameters:
header - FrameHeader
data - byte[]
Throws:
java.io.IOException
Method Detail

getDescription

public java.lang.String getDescription()
Returns:
the comment description

getComment

public java.lang.String getComment()
Returns:
the comment.


Copyright © 2004, 2005 Gary Dusbabek. All Rights Reserved.