|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.blinkenlights.jid3.v2.ID3V2Frame
org.blinkenlights.jid3.v2.COMRID3V2Frame
Field Summary | |
static byte |
RECEIVED_AS_COMPRESSED_AUDIO_ON_CD
|
static byte |
RECEIVED_AS_FILE_OVER_THE_INTERNET
|
static byte |
RECEIVED_AS_MUSIC_ON_OTHER_MEDIA
|
static byte |
RECEIVED_AS_NON_MUSICAL_MERCHANDISE
|
static byte |
RECEIVED_AS_NOTE_SHEETS
|
static byte |
RECEIVED_AS_NOTE_SHEETS_IN_A_BOOK_WITH_OTHER_SHEETS
|
static byte |
RECEIVED_AS_OTHER
|
static byte |
RECEIVED_AS_STANDARD_ALBUM
|
static byte |
RECEIVED_AS_STREAM_OVER_THE_INTERNET
|
Constructor Summary | |
COMRID3V2Frame(java.io.InputStream oIS)
|
|
COMRID3V2Frame(java.lang.String sPrice,
java.lang.String sValidUntil,
java.lang.String sContactUrl,
byte byReceivedAs,
java.lang.String sNameOfSeller,
java.lang.String sDescription,
java.lang.String sPictureMimeType,
byte[] abySellerLogoData)
Constructor. |
Method Summary | |
void |
accept(ID3Visitor oID3Visitor)
Accept a visitor. |
boolean |
equals(java.lang.Object oOther)
|
java.lang.String |
getContactUrl()
Get contact URL string. |
java.lang.String |
getDescription()
Get description of item. |
protected byte[] |
getFrameId()
Get the four bytes which uniquely specify of which type this frame is. |
java.lang.String |
getNameOfSeller()
Get name of seller. |
java.lang.String |
getPrice()
Get price. |
byte |
getReceivedAsFormat()
Get received as format. |
byte[] |
getSellerLogoData()
Get image data for the seller logo. |
java.lang.String |
getSellerLogoMimeType()
Get mime type of the seller logo image. |
TextEncoding |
getTextEncoding()
Get the text encoding used for the name of seller and description in this frame. |
java.lang.String |
getValidUntilDate()
Get valid until date. |
void |
setCommercialInformation(java.lang.String sPrice,
java.lang.String sValidUntil,
java.lang.String sContactUrl,
byte byReceivedAs,
java.lang.String sNameOfSeller,
java.lang.String sDescription,
java.lang.String sPictureMimeType,
byte[] abySellerLogoData)
Set commercial information. |
void |
setTextEncoding(TextEncoding oTextEncoding)
Set the text encoding to be used for the name of seller and description in this frame. |
java.lang.String |
toString()
Represent the contents of this frame as a string. |
protected void |
writeBody(ID3DataOutputStream oIDOS)
Write the body of the frame to an ID3 data output stream. |
Methods inherited from class org.blinkenlights.jid3.v2.ID3V2Frame |
addID3Observer, getEncryptionMethod, isEncrypted, notifyID3Observers, removeID3Observer, setCompressionFlag, setEncryption, setFileAlterPreservationFlag, setGroupingIdentityFlag, setReadOnlyFlag, setTagAlterPreservationFlag, write, writeHeader |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte RECEIVED_AS_OTHER
public static final byte RECEIVED_AS_STANDARD_ALBUM
public static final byte RECEIVED_AS_COMPRESSED_AUDIO_ON_CD
public static final byte RECEIVED_AS_FILE_OVER_THE_INTERNET
public static final byte RECEIVED_AS_STREAM_OVER_THE_INTERNET
public static final byte RECEIVED_AS_NOTE_SHEETS
public static final byte RECEIVED_AS_NOTE_SHEETS_IN_A_BOOK_WITH_OTHER_SHEETS
public static final byte RECEIVED_AS_MUSIC_ON_OTHER_MEDIA
public static final byte RECEIVED_AS_NON_MUSICAL_MERCHANDISE
Constructor Detail |
public COMRID3V2Frame(java.lang.String sPrice, java.lang.String sValidUntil, java.lang.String sContactUrl, byte byReceivedAs, java.lang.String sNameOfSeller, java.lang.String sDescription, java.lang.String sPictureMimeType, byte[] abySellerLogoData) throws ID3Exception
sPrice
- a price(s) string (a price string consists of a three letter ISO-4217 currency code,
followed by an amount, where "." is used as the decimal separator). Multiple prices may be separated
by a "/" characters.sValidUntil
- the date the prices offer is valid until, in the format YYYYMMDDsContactUrl
- an URL at which contact can be made with the sellerbyReceivedAs
- byte specifying how the track will be delivered when purchasedsNameOfSeller
- the name of the sellersDescription
- short description of the productsPictureMimeType
- the mime type of the picture (only "image/jpeg" and "image/png" are allowed
by the ID3 specification)abySellerLogoData
- the image data containing the seller's logo
ID3Exception
- if sPrice is null or invalid
ID3Exception
- if sValidUntil is null or invalid
ID3Exception
- if sContactUrl is null
ID3Exception
- if sNameOfSeller is null
ID3Exception
- if sDecription is nullpublic COMRID3V2Frame(java.io.InputStream oIS) throws ID3Exception
Method Detail |
public void accept(ID3Visitor oID3Visitor)
ID3Visitable
oID3Visitor
- a visitor of this objectpublic void setCommercialInformation(java.lang.String sPrice, java.lang.String sValidUntil, java.lang.String sContactUrl, byte byReceivedAs, java.lang.String sNameOfSeller, java.lang.String sDescription, java.lang.String sPictureMimeType, byte[] abySellerLogoData) throws ID3Exception
sPrice
- a price(s) string (a price string consists of a three letter ISO-4217 currency code,
followed by an amount, where "." is used as the decimal separator). Multiple prices may be separated
by a "/" characters.sValidUntil
- the date the prices offer is valid until, in the format YYYYMMDDsContactUrl
- an URL at which contact can be made with the sellerbyReceivedAs
- byte specifying how the track will be delivered when purchasedsNameOfSeller
- the name of the sellersDescription
- short description of the productsPictureMimeType
- the mime type of the picture (only "image/jpeg" and "image/png" are allowed
by the ID3 specification)abySellerLogoData
- the image data containing the seller's logo
ID3Exception
- if sPrice is null or invalid
ID3Exception
- if sValidUntil is null or invalid
ID3Exception
- if sContactUrl is null
ID3Exception
- if sNameOfSeller is null
ID3Exception
- if sDecription is nullpublic java.lang.String getPrice()
public java.lang.String getValidUntilDate()
public java.lang.String getContactUrl()
public byte getReceivedAsFormat()
public java.lang.String getNameOfSeller()
public java.lang.String getDescription()
public java.lang.String getSellerLogoMimeType()
public byte[] getSellerLogoData()
public void setTextEncoding(TextEncoding oTextEncoding)
oTextEncoding
- the text encoding to be used for this framepublic TextEncoding getTextEncoding()
protected byte[] getFrameId()
ID3V2Frame
getFrameId
in class ID3V2Frame
public java.lang.String toString()
ID3V2Frame
toString
in class ID3V2Frame
protected void writeBody(ID3DataOutputStream oIDOS) throws java.io.IOException
ID3V2Frame
writeBody
in class ID3V2Frame
oIDOS
- the output stream to write to
java.io.IOException
public boolean equals(java.lang.Object oOther)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |