TSIZTextInformationID3V2Framepublic class TSIZTextInformationID3V2Frame extends TextInformationID3V2Frame
Fields Summary |
---|
private int | m_iSizeInBytes |
Constructors Summary |
---|
public TSIZTextInformationID3V2Frame(int iSizeInBytes)Constructor.
super(Integer.toString(iSizeInBytes));
if (iSizeInBytes < 0)
{
throw new ID3Exception("Size value cannot be negative.");
}
m_iSizeInBytes = iSizeInBytes;
| public TSIZTextInformationID3V2Frame(InputStream oIS)
super(oIS);
try
{
m_iSizeInBytes = Integer.parseInt(m_sInformation);
}
catch (Exception e)
{
throw new InvalidFrameID3Exception("Encountered a corrupt TSIZ file size frame.", e);
}
|
Methods Summary |
---|
public void | accept(ID3Visitor oID3Visitor)
oID3Visitor.visitTSIZTextInformationID3V2Frame(this);
| public boolean | equals(java.lang.Object oOther)
if ((oOther == null) || (!(oOther instanceof TSIZTextInformationID3V2Frame)))
{
return false;
}
TSIZTextInformationID3V2Frame oOtherTSIZ = (TSIZTextInformationID3V2Frame)oOther;
return ((m_iSizeInBytes == oOtherTSIZ.m_iSizeInBytes) &&
m_oTextEncoding.equals(oOtherTSIZ.m_oTextEncoding) &&
m_sInformation.equals(oOtherTSIZ.m_sInformation));
| protected byte[] | getFrameId()
return "TSIZ".getBytes();
| public int | getSizeInBytes()Get the size in bytes, of the tagged file, not counting the tag length.
return m_iSizeInBytes;
| public void | setSizeInBytes(int iSizeInBytes)Set the size in bytes, of the tagged audio file, not counting the tag length.
if (iSizeInBytes < 0)
{
throw new ID3Exception("Size value cannot be negative.");
}
m_iSizeInBytes = iSizeInBytes;
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = Integer.toString(iSizeInBytes);
| public java.lang.String | toString()
return "Size (in bytes excluding tags): [" + m_sInformation + "]";
|
|