org.metasyntactic.id3.v2.frame
Class WXXX
java.lang.Object
|
+--org.metasyntactic.id3.v2.frame.Frame
|
+--org.metasyntactic.id3.v2.frame.WXXX
- All Implemented Interfaces:
- Id3v2Constants
- public class WXXX
- extends Frame
- implements Id3v2Constants
This frame is intended for URL [URL] links concerning the audio file
in a similar way to the other "W"-frames. The frame body consists
of a description of the string, represented as a terminated string,
followed by the actual URL. The URL is always encoded with ISO-8859-1
[ISO-8859-1]. There may be more than one "WXXX" frame in each tag,
but only one with the same description.
Text encoding $xx
Description $00 (00)
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 |
|
Constructor Summary |
protected |
WXXX()
|
|
WXXX(java.lang.String description,
java.net.URL url)
|
|
Method Summary |
java.lang.String |
getDescription()
|
int |
getSize()
The size of a WXXX frame is:
1 byte for the encoding
n bytes for the description encoded
1 byte for the null terminator for the description
m bytes for the URL encoded as ISO-8859-1 |
java.net.URL |
getURL()
|
void |
readContent(java.io.PushbackInputStream in,
int length)
Subclasses must implement this method so that they can restore the
contents of their fields from the stream |
java.lang.String |
toString()
|
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
encoding
protected byte encoding
description
protected java.lang.String description
url
protected java.net.URL url
WXXX
protected WXXX()
WXXX
public WXXX(java.lang.String description,
java.net.URL url)
getDescription
public java.lang.String getDescription()
getURL
public java.net.URL getURL()
getSize
public int getSize()
- The size of a WXXX frame is:
1 byte for the encoding
n bytes for the description encoded
1 byte for the null terminator for the description
m bytes for the URL encoded as ISO-8859-1
- Overrides:
getSize in class Frame
readContent
public void readContent(java.io.PushbackInputStream in,
int length)
throws java.io.IOException,
Id3v2Exception
- Description copied from class:
Frame
- Subclasses must implement this method so that they can restore the
contents of their fields from the stream
- Specified by:
readContent in class Frame
java.io.IOException
Id3v2Exception
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
toString
public java.lang.String toString()
- Overrides:
toString in class Frame