com.dusbabek.lib.id3
Class ExtendedTagHeader_v2_4

java.lang.Object
  extended by com.dusbabek.lib.id3.ExtendedTagHeader_v2_4
All Implemented Interfaces:
ExtendedTagHeader

public class ExtendedTagHeader_v2_4
extends java.lang.Object
implements ExtendedTagHeader

Represents a ID3v2.4 extended tag header, which differs SIGNIFICANTLY from the ID3V2.3 extended tag header. Here is how it works: size of header 0x00-0x03 number of flag bytes 0x04 flags 0x05-0x05+ optional parts specified in flags. each optional part consists of a single byte header indicationg how many bytes to read for the rest of the part.


Constructor Summary
ExtendedTagHeader_v2_4(java.io.InputStream in)
          Construct an extended header from a stream of bytes.
 
Method Summary
 boolean isUpdate()
           
 int sizeOf()
           
 boolean usesCrc()
           
 boolean usesTagRestrictions()
           
 void write(java.io.OutputStream out)
          write extended header to a stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedTagHeader_v2_4

public ExtendedTagHeader_v2_4(java.io.InputStream in)
                       throws java.io.IOException
Construct an extended header from a stream of bytes.

Parameters:
in - InputStream
Throws:
java.io.IOException
Method Detail

write

public void write(java.io.OutputStream out)
           throws java.io.IOException
write extended header to a stream.

Specified by:
write in interface ExtendedTagHeader
Parameters:
out - OutputStream
Throws:
java.io.IOException

sizeOf

public int sizeOf()
Specified by:
sizeOf in interface ExtendedTagHeader
Returns:
size of extended header.

isUpdate

public boolean isUpdate()
Returns:
true if this tag updates another.

usesCrc

public boolean usesCrc()
Returns:
true if this tag specifies a CRC

usesTagRestrictions

public boolean usesTagRestrictions()
Returns:
true if this tag calls for tag restrictions.


Copyright © 2004, 2005 Gary Dusbabek. All Rights Reserved.