com.dusbabek.lib.id3
Class ExtendedTagHeader_v2_3

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

public class ExtendedTagHeader_v2_3
extends java.lang.Object
implements ExtendedTagHeader

Extended header for a ID3v2.3 tag. Here is the way it usually goes down: ext header size 0x00-0x03 ext flags 0x04-0x05 padding size 0x06-0x09 optional crc 0x0a-0x0d the crc will only be present if specified in the flags. the ext header size will either be 6 or 10 depending on whether or not a crc is specified.


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

Constructor Detail

ExtendedTagHeader_v2_3

public ExtendedTagHeader_v2_3(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.

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

sizeOf

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

crcDataPresent

public boolean crcDataPresent()
Returns:
true of a CRC is specified.


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