com.dusbabek.lib.id3
Class CommentFrame
java.lang.Object
com.dusbabek.lib.id3.Frame
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
- FrameHeaderdata
- byte[]
- Throws:
java.io.IOException
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.