|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.blinkenlights.jid3.v2.ID3V2Frame
Constructor Summary | |
ID3V2Frame()
|
Method Summary | |
void |
addID3Observer(ID3Observer oID3Observer)
|
byte |
getEncryptionMethod()
Get the encryption method symbol used to encrypt this frame. |
protected abstract byte[] |
getFrameId()
Get the four bytes which uniquely specify of which type this frame is. |
boolean |
isEncrypted()
Check whether this frame is encrypted. |
void |
notifyID3Observers()
|
void |
removeID3Observer(ID3Observer oID3Observer)
|
void |
setCompressionFlag(boolean bCompressionFlagValue)
Specify whether this frame is compressed or not. |
void |
setEncryption(byte byEncryptionMethod)
Set encryption method for this frame. |
void |
setFileAlterPreservationFlag(boolean bFileAlterPreservationFlagValue)
Specify what should happen to this frame, if this file (other than the tag) is modified by a program which does not recognize it. |
void |
setGroupingIdentityFlag(boolean bGroupingIdentityFlagValue)
Specify whether this frame belongs to a group of other frames or not. |
void |
setReadOnlyFlag(boolean bReadOnlyFlagValue)
Specify whether this frame should be considered read only or not. |
void |
setTagAlterPreservationFlag(boolean bTagAlterPreservationFlagValue)
Specify what should happen to this frame, if the tag it is in is modified by another program which does not recognize it. |
abstract java.lang.String |
toString()
Represent the contents of this frame as a string. |
void |
write(java.io.OutputStream oOS)
Write this frame to an output stream. |
protected abstract void |
writeBody(ID3DataOutputStream oIDOS)
Write the body of the frame to an ID3 data output stream. |
protected void |
writeHeader(java.io.OutputStream oOS)
Write the header of this frame to an output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.blinkenlights.jid3.util.ID3Visitable |
accept |
Constructor Detail |
public ID3V2Frame()
Method Detail |
public void addID3Observer(ID3Observer oID3Observer)
addID3Observer
in interface ID3Subject
public void removeID3Observer(ID3Observer oID3Observer)
removeID3Observer
in interface ID3Subject
public void notifyID3Observers() throws ID3Exception
notifyID3Observers
in interface ID3Subject
ID3Exception
public void setTagAlterPreservationFlag(boolean bTagAlterPreservationFlagValue)
bTagAlterPreservationFlagValue
- the state this flag should be set topublic void setFileAlterPreservationFlag(boolean bFileAlterPreservationFlagValue)
bFileAlterPreservationFlagValue
- the state this flag should be set topublic void setReadOnlyFlag(boolean bReadOnlyFlagValue)
bReadOnlyFlagValue
- the state this flag should be set topublic void setCompressionFlag(boolean bCompressionFlagValue)
bCompressionFlagValue
- the state this flag should be set topublic void setEncryption(byte byEncryptionMethod) throws ID3Exception
byEncryptionMethod
- the encryption method value to use (this value must match a
method specified in an ENCR frame in this tag)
ID3Exception
public boolean isEncrypted()
public byte getEncryptionMethod() throws ID3Exception
ID3Exception
- if this frame is not encryptedpublic void setGroupingIdentityFlag(boolean bGroupingIdentityFlagValue)
bGroupingIdentityFlagValue
- the state this flag should be set toprotected abstract byte[] getFrameId()
public abstract java.lang.String toString()
protected void writeHeader(java.io.OutputStream oOS) throws ID3Exception
oOS
- the output stream to write to
ID3Exception
- if an error occurs while writingprotected abstract void writeBody(ID3DataOutputStream oIDOS) throws java.io.IOException
oIDOS
- the output stream to write to
ID3Exception
- if an error occurs while writing
java.io.IOException
public void write(java.io.OutputStream oOS) throws java.io.IOException, ID3Exception
oOS
- the output stream to write to
ID3Exception
- if an error occurs while writing the frame
java.io.IOException
- if an error occurs while writing the frame
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |