⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpegaudioframeheader.html

📁 Java MP3 Player, Here s a list of features: - Reads, creates, updates, and removes id3v2.3 and id3
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</TABLE>

<A NAME="MPEGAudioFrameHeader(java.io.File)"><!-- --></A><H3>
MPEGAudioFrameHeader</H3>
<PRE>
public <B>MPEGAudioFrameHeader</B>(java.io.File&nbsp;mp3)                     throws <A HREF="../../helliker/id3/NoMPEGFramesException.html">NoMPEGFramesException</A>,                            java.io.FileNotFoundException,                            java.io.IOException</PRE>
<DL>
<DD>Create an MPEGAudioFrameHeader from the file specified.  Upon creation information will be read in from the first frame header the object  encounters in the file.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>mp3</CODE> - the file to read from<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/NoMPEGFramesException.html">NoMPEGFramesException</A></CODE> - if the file is not a valid mpeg<DD><CODE>java.io.FileNotFoundException</CODE> - if an error occurs<DD><CODE>java.io.IOException</CODE> - if an error occurs</DL>
</DD>
</DL>
<HR>

<A NAME="MPEGAudioFrameHeader(java.io.File, int)"><!-- --></A><H3>
MPEGAudioFrameHeader</H3>
<PRE>
public <B>MPEGAudioFrameHeader</B>(java.io.File&nbsp;mp3,                            int&nbsp;offset)                     throws <A HREF="../../helliker/id3/NoMPEGFramesException.html">NoMPEGFramesException</A>,                            java.io.FileNotFoundException,                            java.io.IOException</PRE>
<DL>
<DD>Create an MPEGAudioFrameHeader from the file specified.  Upon creation information will be read in from the first frame header the object  encounters in the file.  The offset tells the object where to start searching for an MPEG frame.  If you know the size of an id3v2 tag  attached to the file and pass it to this ctor, it will take less time to find the frame.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>mp3</CODE> - the file to read from<DD><CODE>offset</CODE> - the offset to start searching from<DT><B>Throws:</B><DD><CODE><A HREF="../../helliker/id3/NoMPEGFramesException.html">NoMPEGFramesException</A></CODE> - if the file is not a valid mpeg<DD><CODE>java.io.FileNotFoundException</CODE> - if an error occurs<DD><CODE>java.io.IOException</CODE> - if an error occurs</DL>
</DD>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<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.  Includes all information read in.<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="getVersion()"><!-- --></A><H3>
getVersion</H3>
<PRE>
public java.lang.String <B>getVersion</B>()</PRE>
<DL>
<DD>Return the version of the mpeg in string form.  Ex: MPEG Version 1.0<DD><DL>
<DT><B>Returns:</B><DD>the version of the mpeg</DL>
</DD>
</DL>
<HR>

<A NAME="getLayer()"><!-- --></A><H3>
getLayer</H3>
<PRE>
public java.lang.String <B>getLayer</B>()</PRE>
<DL>
<DD>Return the layer description of the mpeg in string form. Ex: Layer III<DD><DL>
<DT><B>Returns:</B><DD>the layer description of the mpeg</DL>
</DD>
</DL>
<HR>

<A NAME="getChannelMode()"><!-- --></A><H3>
getChannelMode</H3>
<PRE>
public java.lang.String <B>getChannelMode</B>()</PRE>
<DL>
<DD>Return the channel mode of the mpeg in string form. Ex: Joint Stereo (STEREO)<DD><DL>
<DT><B>Returns:</B><DD>the channel mode of the mpeg</DL>
</DD>
</DL>
<HR>

<A NAME="getBitRate()"><!-- --></A><H3>
getBitRate</H3>
<PRE>
public int <B>getBitRate</B>()</PRE>
<DL>
<DD>Returns the bitrate of the mpeg in kbps<DD><DL>
<DT><B>Returns:</B><DD>the bitrate of the mpeg in kbps</DL>
</DD>
</DL>
<HR>

<A NAME="getSampleRate()"><!-- --></A><H3>
getSampleRate</H3>
<PRE>
public int <B>getSampleRate</B>()</PRE>
<DL>
<DD>Returns the sample rate of the mpeg in Hz<DD><DL>
<DT><B>Returns:</B><DD>the sample rate of the mpeg in Hz</DL>
</DD>
</DL>
<HR>

<A NAME="isCopyrighted()"><!-- --></A><H3>
isCopyrighted</H3>
<PRE>
public boolean <B>isCopyrighted</B>()</PRE>
<DL>
<DD>Returns true if the audio is copyrighted<DD><DL>
<DT><B>Returns:</B><DD>true if the audio is copyrighted</DL>
</DD>
</DL>
<HR>

<A NAME="isProtected()"><!-- --></A><H3>
isProtected</H3>
<PRE>
public boolean <B>isProtected</B>()</PRE>
<DL>
<DD>Returns true if this mpeg is protected by CRC<DD><DL>
<DT><B>Returns:</B><DD>true if this mpeg is protected by CRC</DL>
</DD>
</DL>
<HR>

<A NAME="isOriginal()"><!-- --></A><H3>
isOriginal</H3>
<PRE>
public boolean <B>isOriginal</B>()</PRE>
<DL>
<DD>Returns true if this is the original media<DD><DL>
<DT><B>Returns:</B><DD>true if this is the original media</DL>
</DD>
</DL>
<HR>

<A NAME="getEmphasis()"><!-- --></A><H3>
getEmphasis</H3>
<PRE>
public java.lang.String <B>getEmphasis</B>()</PRE>
<DL>
<DD>Returns the emphasis.  I don't know what this means, it just does it...<DD><DL>
<DT><B>Returns:</B><DD>the emphasis</DL>
</DD>
</DL>
<HR>

<A NAME="isMP3()"><!-- --></A><H3>
isMP3</H3>
<PRE>
public boolean <B>isMP3</B>()</PRE>
<DL>
<DD>Returns true if the file passed to the constructor is an mp3 (MPEG  layer III).<DD><DL>
<DT><B>Returns:</B><DD>true if the file is an mp3</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"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../helliker/id3/MP3FileFilter.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../helliker/id3/NoMPEGFramesException.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>  &nbsp;
&nbsp;<A HREF="MPEGAudioFrameHeader.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -