org.metasyntactic.id3.v2.frame
Class URLLinkFrame
java.lang.Object
|
+--org.metasyntactic.id3.v2.frame.Frame
|
+--org.metasyntactic.id3.v2.frame.URLLinkFrame
- All Implemented Interfaces:
- Id3v2Constants
- Direct Known Subclasses:
- WOAR
- public abstract class URLLinkFrame
- extends Frame
- implements Id3v2Constants
With these frames dynamic data such as webpages with touring
information, price information or plain ordinary news can be added to
the tag. There may only be one URL [URL] link frame of its kind in an
tag, except when stated otherwise in the frame description. If the
text string is followed by a string termination, all the following
information should be ignored and not be displayed. All URL link
frame identifiers begins with "W". Only URL link frame identifiers
begins with "W", except for "WXXX". All URL link frames have the
following format:
Field Summary |
protected java.net.URL |
url
|
Fields inherited from interface org.metasyntactic.id3.v2.Id3v2Constants |
ISO_8859_1, JAVA_ISO_8859_1, JAVA_US_ASCII, JAVA_UTF_16, JAVA_UTF_16_BIG_ENDIAN, JAVA_UTF_8, MAJOR_VERSION, MAX_ENCODING, MIN_ENCODING, REVISION_NUMBER, UTF_16, UTF_16_BIG_ENDIAN, UTF_8 |
Method Summary |
boolean |
equals(java.lang.Object o)
|
boolean |
equals(URLLinkFrame t)
|
int |
getSize()
The size of a URLLinkFrame is the length of the information, |
java.net.URL |
getURL()
|
int |
hashCode()
|
void |
readContent(java.io.PushbackInputStream in,
int length)
Creates new TextInformationFrame |
java.lang.String |
toString()
|
protected void |
validate()
|
void |
writeContent(java.io.OutputStream out)
This is called as the last step of write(OutputStream). |
Methods inherited from class org.metasyntactic.id3.v2.frame.Frame |
getTotalSize, hasDataLengthIndicator, isCompressed, isDiscardedOnFileAlteration, isDiscardedOnTagAlteration, isEncrypted, isPartOfGroup, isReadOnly, isUnsynchronized, read, write |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
url
protected java.net.URL url
URLLinkFrame
protected URLLinkFrame()
URLLinkFrame
public URLLinkFrame(java.net.URL url)
getSize
public int getSize()
- The size of a URLLinkFrame is the length of the information,
- Overrides:
getSize
in class Frame
getURL
public java.net.URL getURL()
writeContent
public void writeContent(java.io.OutputStream out)
throws java.io.IOException
- Description copied from class:
Frame
- This is called as the last step of write(OutputStream). Subclasses must
implement in order to properly write out their data to the stream
- Specified by:
writeContent
in class Frame
java.io.IOException
readContent
public void readContent(java.io.PushbackInputStream in,
int length)
throws java.io.IOException,
Id3v2Exception
- Creates new TextInformationFrame
- Specified by:
readContent
in class Frame
java.io.IOException
Id3v2Exception
validate
protected void validate()
throws Id3v2Exception
Id3v2Exception
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
equals
public boolean equals(URLLinkFrame t)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class Frame