org.blinkenlights.jid3.v2
Class UrlLinkID3V2Frame
java.lang.Object
org.blinkenlights.jid3.v2.ID3V2Frame
org.blinkenlights.jid3.v2.UrlLinkID3V2Frame
- All Implemented Interfaces:
- ID3Subject, ID3Visitable
- Direct Known Subclasses:
- UnknownUrlLinkID3V2Frame, WCOMUrlLinkID3V2Frame, WCOPUrlLinkID3V2Frame, WOAFUrlLinkID3V2Frame, WOARUrlLinkID3V2Frame, WOASUrlLinkID3V2Frame, WORSUrlLinkID3V2Frame, WPAYUrlLinkID3V2Frame, WPUBUrlLinkID3V2Frame, WXXXUrlLinkID3V2Frame
- public abstract class UrlLinkID3V2Frame
- extends ID3V2Frame
Field Summary |
protected java.lang.String |
m_sURL
The URL content for this frame, represented as a string. |
Methods inherited from class org.blinkenlights.jid3.v2.ID3V2Frame |
addID3Observer, getEncryptionMethod, getFrameId, isEncrypted, notifyID3Observers, removeID3Observer, setCompressionFlag, setEncryption, setFileAlterPreservationFlag, setGroupingIdentityFlag, setReadOnlyFlag, setTagAlterPreservationFlag, toString, write, writeHeader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_sURL
protected java.lang.String m_sURL
- The URL content for this frame, represented as a string. This class will not throw an exception
if an invalid URL is specified, to ensure compatibility with broken implementations, so a string,
rather than an URL, is used to store the value.
UrlLinkID3V2Frame
public UrlLinkID3V2Frame()
UrlLinkID3V2Frame
public UrlLinkID3V2Frame(java.lang.String sURL)
throws ID3Exception
- Constructor for user created frames.
- Parameters:
sURL
- the raw URL text to be stored in this frame when it is written
- Throws:
ID3Exception
- if the URL passed is null
UrlLinkID3V2Frame
public UrlLinkID3V2Frame(java.net.URL oURL)
throws ID3Exception
- Constructor for user created frames.
- Parameters:
oURL
- the raw URL from which text is to be stored in this frame when it is written
- Throws:
ID3Exception
- if the URL passed is null
UrlLinkID3V2Frame
public UrlLinkID3V2Frame(java.io.InputStream oIS)
throws ID3Exception
- Constructor to be used internally when reading frames from a file.
- Throws:
ID3Exception
- if there is any error parsing the URL frame data
writeBody
protected void writeBody(ID3DataOutputStream oIDOS)
throws java.io.IOException
- Write the body of this frame to an output stream.
- Specified by:
writeBody
in class ID3V2Frame
- Parameters:
oIDOS
- the ID3 output stream to which the frame body is to be written
- Throws:
ID3Exception
- if there is any error writing the frame body data
java.io.IOException