📄 mp3file.html
字号:
<A NAME="setUserDefinedText(java.lang.String, java.lang.String)"><!-- --></A><H3>
setUserDefinedText</H3>
<PRE>
public void <B>setUserDefinedText</B>(java.lang.String desc, java.lang.String text)</PRE>
<DL>
<DD>Add a field of miscellaneous text (id3v2 only). This includes a description of the text and the text itself.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>desc</CODE> - a description of the text<DD><CODE>text</CODE> - the text itself</DL>
</DD>
</DL>
<HR>
<A NAME="setEncodedBy(java.lang.String)"><!-- --></A><H3>
setEncodedBy</H3>
<PRE>
public void <B>setEncodedBy</B>(java.lang.String encBy)</PRE>
<DL>
<DD>Set who encoded the mp3 (id3v2 only).<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>encBy</CODE> - who encoded the mp3</DL>
</DD>
</DL>
<HR>
<A NAME="setTextFrame(java.lang.String, java.lang.String)"><!-- --></A><H3>
setTextFrame</H3>
<PRE>
public void <B>setTextFrame</B>(java.lang.String id, java.lang.String data)</PRE>
<DL>
<DD>Set the text of the text frame specified by the id (id3v2 only). The id should be one of the static strings specifed in ID3v2Frames class. All id's that begin with 'T' (excluding "TXXX") are considered text frames.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - the id of the frame to set the data for<DD><CODE>data</CODE> - the data to set</DL>
</DD>
</DL>
<HR>
<A NAME="setFrameData(java.lang.String, byte[])"><!-- --></A><H3>
setFrameData</H3>
<PRE>
public void <B>setFrameData</B>(java.lang.String id, byte[] data)</PRE>
<DL>
<DD>Set the data of the frame specified by the id (id3v2 only). The id should be one of the static strings specified in ID3v2Frames class.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - the id of the frame to set the data for<DD><CODE>data</CODE> - the data to set</DL>
</DD>
</DL>
<HR>
<A NAME="getArtist()"><!-- --></A><H3>
getArtist</H3>
<PRE>
public java.lang.String <B>getArtist</B>() throws <A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></PRE>
<DL>
<DD>Returns the artist of the mp3 if set and the empty string if not.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the artist of the mp3<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></CODE> - if the data of the field is incorrect</DL>
</DD>
</DL>
<HR>
<A NAME="getAlbum()"><!-- --></A><H3>
getAlbum</H3>
<PRE>
public java.lang.String <B>getAlbum</B>() throws <A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></PRE>
<DL>
<DD>Returns the album of the mp3 if set and the empty string if not.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the album of the mp3<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></CODE> - if the data of the field is incorrect</DL>
</DD>
</DL>
<HR>
<A NAME="getComment()"><!-- --></A><H3>
getComment</H3>
<PRE>
public java.lang.String <B>getComment</B>() throws <A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></PRE>
<DL>
<DD>Returns the comment field of this mp3 if set and the empty string if not.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the comment field of this mp3<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></CODE> - if the data of the field is incorrect</DL>
</DD>
</DL>
<HR>
<A NAME="getGenre()"><!-- --></A><H3>
getGenre</H3>
<PRE>
public java.lang.String <B>getGenre</B>() throws <A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></PRE>
<DL>
<DD>Returns the genre of this mp3 if set and the empty string if not.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the genre of this mp3<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></CODE> - if the data of this field is incorrect</DL>
</DD>
</DL>
<HR>
<A NAME="getTitle()"><!-- --></A><H3>
getTitle</H3>
<PRE>
public java.lang.String <B>getTitle</B>() throws <A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></PRE>
<DL>
<DD>Returns the title of this mp3 if set and the empty string if not.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the title of this mp3<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></CODE> - if the data of this field is incorrect</DL>
</DD>
</DL>
<HR>
<A NAME="getTrack()"><!-- --></A><H3>
getTrack</H3>
<PRE>
public java.lang.String <B>getTrack</B>() throws <A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></PRE>
<DL>
<DD>Returns the track of this mp3 if set and the empty string if not.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the track of this mp3<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></CODE> - if the data of this field is incorrect</DL>
</DD>
</DL>
<HR>
<A NAME="getYear()"><!-- --></A><H3>
getYear</H3>
<PRE>
public java.lang.String <B>getYear</B>() throws <A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></PRE>
<DL>
<DD>Returns the year of this mp3 if set and the empty string if not.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the year of this mp3<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></CODE> - if the data of this field is incorrect</DL>
</DD>
</DL>
<HR>
<A NAME="getComposer()"><!-- --></A><H3>
getComposer</H3>
<PRE>
public java.lang.String <B>getComposer</B>() throws <A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></PRE>
<DL>
<DD>Returns the composer of this mp3 if set and the empty string if not (id3v2 only).<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the composer of this mp3<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></CODE> - if the data of this field is incorrect</DL>
</DD>
</DL>
<HR>
<A NAME="getOriginalArtist()"><!-- --></A><H3>
getOriginalArtist</H3>
<PRE>
public java.lang.String <B>getOriginalArtist</B>() throws <A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></PRE>
<DL>
<DD>Returns the original artist of this mp3 if set and the empty string if not (id3v2 only).<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the original artist of this mp3<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></CODE> - if the data of this field is incorrect</DL>
</DD>
</DL>
<HR>
<A NAME="getCopyrightInfo()"><!-- --></A><H3>
getCopyrightInfo</H3>
<PRE>
public java.lang.String <B>getCopyrightInfo</B>() throws <A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></PRE>
<DL>
<DD>Returns the copyright info of this mp3 if set and the empty string if not (id3v2 only).<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the copyright info of this mp3<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></CODE> - if the data of this field is incorrect</DL>
</DD>
</DL>
<HR>
<A NAME="getUserDefinedURL()"><!-- --></A><H3>
getUserDefinedURL</H3>
<PRE>
public java.lang.String <B>getUserDefinedURL</B>() throws <A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></PRE>
<DL>
<DD>Returns the user defined url of this mp3 if set and the empty string if not (id3v2 only).<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the user defined url of this mp3<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></CODE> - if the data of this field is incorrect</DL>
</DD>
</DL>
<HR>
<A NAME="getEncodedBy()"><!-- --></A><H3>
getEncodedBy</H3>
<PRE>
public java.lang.String <B>getEncodedBy</B>() throws <A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></PRE>
<DL>
<DD>Returns who encoded this mp3 if set and the empty string if not (id3v2 only).<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>who encoded this mp3<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></CODE> - if the data of this field is incorrect</DL>
</DD>
</DL>
<HR>
<A NAME="getFrameDataString(java.lang.String)"><!-- --></A><H3>
getFrameDataString</H3>
<PRE>
public java.lang.String <B>getFrameDataString</B>(java.lang.String id) throws <A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></PRE>
<DL>
<DD>Returns the textual information contained in the frame specifed by the id. If the frame does not contain any textual information or does not exist, then the empty string is returned (id3v2 only). The id should be one of the static strings defined in the ID3v2Frames class.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - the id of the frame to get data from<DT><B>Returns:</B><DD>the textual information of the frame<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/ID3v2FormatException.html">ID3v2FormatException</A></CODE> - if the data of the frame is incorrect</DL>
</DD>
</DL>
<HR>
<A NAME="getFrameDataBytes(java.lang.String)"><!-- --></A><H3>
getFrameDataBytes</H3>
<PRE>
public byte[] <B>getFrameDataBytes</B>(java.lang.String id)</PRE>
<DL>
<DD>Returns the data contained in the frame specified by the id (id3v2 only) . If the frame does not exist, a zero length array will be returned. The id should be one of the static strings defined in the ID3v2Frames class.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - the id of the frame to get data from<DT><B>Returns:</B><DD>the data contained in the frame</DL>
</DD>
</DL>
<HR>
<A NAME="getTaggingType()"><!-- --></A><H3>
getTaggingType</H3>
<PRE>
public int <B>getTaggingType</B>()</PRE>
<DL>
<DD>Returns the currently set tagging type.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the current tagging type</DL>
</DD>
</DL>
<HR>
<A NAME="setTaggingType(int)"><!-- --></A><H3>
setTaggingType</H3>
<PRE>
public void <B>setTaggingType</B>(int newType)</PRE>
<DL>
<DD>Set the tagging type. This determines what type of id3 tags are read/written. This should be one of the constants defined by this class: BOTH_TAGS, ID3V1_ONLY, ID3V2_ONLY, EXISTING_TAGS_ONLY, NO_TAGS<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>newType</CODE> - the new tagging type</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Return a string representation of this object. This includes all the information contained within the mpeg header and id3 tags as well as certain file attributes.<DD><DL>
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a string representation of this object</DL>
</DD>
</DL>
<HR>
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object o)</PRE>
<DL>
<DD>Returns true if the object o is equal to this MP3File.<DD><DL>
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>o</CODE> - the object to compare<DT><B>Returns:</B><DD>true if the object o is equal to this MP3File</DL>
</DD>
</DL>
<HR>
<A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>
compareTo</H3>
<PRE>
public int <B>compareTo</B>(java.lang.Object o)</PRE>
<DL>
<DD>Compare this MP3File to the specified object. The comparison implementation comes from the MP3Comparator class, look there for details on the comparison method.<DD><DL>
<DT><B>Specified by: </B><DD><CODE>compareTo</CODE> in interface <CODE>java.lang.Comparable</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>o</CODE> - the object to compare to this one<DT><B>Returns:</B><DD>a positive number if this object is greater than the other, 0 if the object are equal, or a negative number if this object is less than the other</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../helliker/id3/MP3Comparator.html"><B>PREV CLASS</B></A>
<A HREF="../../helliker/id3/MP3FileFilter.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="MP3File.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -