com.dusbabek.lib.id3
Class FrameHeader_v2_4

java.lang.Object
  extended by com.dusbabek.lib.id3.FrameHeader_v2_3
      extended by com.dusbabek.lib.id3.FrameHeader_v2_4
All Implemented Interfaces:
FrameHeader

public class FrameHeader_v2_4
extends FrameHeader_v2_3

Frame header for ID3v2.4 tag.


Field Summary
 
Fields inherited from class com.dusbabek.lib.id3.FrameHeader_v2_3
FRAME_HEADER_LEN
 
Constructor Summary
FrameHeader_v2_4(byte[] data)
          construct a header from raw data
FrameHeader_v2_4(java.lang.String id)
          construct an empty header based on a frame id.
 
Method Summary
 boolean compressed()
          
 boolean dataLengthIndicator()
           
 boolean encrypted()
          I must point out that the spec is only half-baked in this regard.
 boolean fileAlterPreservation()
          
 long getDataLengthIndicator()
           
 boolean grouping()
          
 boolean readOnly()
          
 void setDataLengthIndicator(long l)
          set the data length indicator
 void setEncryptionMethod(byte b)
          set the encryption method.
 boolean tagAlterPreservation()
          
 boolean unsynchronization()
           
 void write(java.io.OutputStream out)
          write header to a stream
 
Methods inherited from class com.dusbabek.lib.id3.FrameHeader_v2_3
getFlags, getGrouping, getId, getSize, getUncompressedSize, setFrameSize, setGrouping, setUncompressedSize, sizeOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameHeader_v2_4

public FrameHeader_v2_4(java.lang.String id)
                 throws java.io.IOException
construct an empty header based on a frame id.

Throws:
java.io.IOException

FrameHeader_v2_4

public FrameHeader_v2_4(byte[] data)
                 throws java.io.IOException
construct a header from raw data

Throws:
java.io.IOException
Method Detail

tagAlterPreservation

public boolean tagAlterPreservation()

Overrides:
tagAlterPreservation in class FrameHeader_v2_3
Returns:
tag alter preservation

fileAlterPreservation

public boolean fileAlterPreservation()

Overrides:
fileAlterPreservation in class FrameHeader_v2_3
Returns:
file alter preservation

readOnly

public boolean readOnly()

Overrides:
readOnly in class FrameHeader_v2_3
Returns:
true if this frame is meant to be read only.

compressed

public boolean compressed()

Specified by:
compressed in interface FrameHeader
Overrides:
compressed in class FrameHeader_v2_3
Returns:
true if frame is compressed

encrypted

public boolean encrypted()
I must point out that the spec is only half-baked in this regard. THE BEST I can do is ignore encrypted frames.

Overrides:
encrypted in class FrameHeader_v2_3
Returns:
true if this frame is encrypted.

grouping

public boolean grouping()

Overrides:
grouping in class FrameHeader_v2_3
Returns:
true if this frame uses grouping.

unsynchronization

public boolean unsynchronization()
Returns:
true if unsynchronization is used.

dataLengthIndicator

public boolean dataLengthIndicator()
Returns:
true if there is a datalength idicator. It is REQUIRED in some instances.

setDataLengthIndicator

public void setDataLengthIndicator(long l)
set the data length indicator


getDataLengthIndicator

public long getDataLengthIndicator()
Returns:
the data length indicator.

setEncryptionMethod

public void setEncryptionMethod(byte b)
set the encryption method.


write

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

Specified by:
write in interface FrameHeader
Overrides:
write in class FrameHeader_v2_3
Throws:
java.io.IOException


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