com.tffenterprises.music.tag.id3v2.frame
Class FrameHeader_3_0_NoCompression
java.lang.Object
com.tffenterprises.music.tag.id3v2.frame.FrameHeader
com.tffenterprises.music.tag.id3v2.frame.FrameHeader_3_0
com.tffenterprises.music.tag.id3v2.frame.FrameHeader_3_0_NoCompression
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class FrameHeader_3_0_NoCompression
- extends FrameHeader_3_0
- implements java.io.Serializable, java.lang.Cloneable
FrameHeader_3_0 is a class that provides ID3v2 with an interpretation of
the frame header structure, as defined in the ID3v2.3 specification.
- Version:
- 1.0d1 $Date: 2003/03/19 22:48:21 $
- Author:
- Guillaume Lessard
- See Also:
- Serialized Form
Method Summary |
protected java.io.OutputStream |
processOutput(java.io.OutputStream out)
Process the OutputStream in which the frame is to be embedded. |
Methods inherited from class com.tffenterprises.music.tag.id3v2.frame.FrameHeader_3_0 |
clone, equals, getFormatFlags, getStatusFlags, processInput, setFormatFlags, setStatusFlags, toString, updateChecksum, usesCompression, writeTo |
Methods inherited from class com.tffenterprises.music.tag.id3v2.frame.FrameHeader |
checkFormatMask, checkStatusMask, getChecksum, getDataLength, getFrameBytesFromStream, getFrameID, getFrameLength, getNewInstance, getNewInstance, getNewInstance, getNewInstance, hashCode, isChanged, isValidFrameID, setChanged, setDataLength, setFormatMask, setFrameID, setFrameLength, setStatusMask, unsetFormatMask, unsetStatusMask, usesDataLengthIndicator, usesEncryption, usesGroupID, usesUnsynchronization |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
FrameHeader_3_0_NoCompression
public FrameHeader_3_0_NoCompression()
- Default constructor. Constructs a FrameHeader object with zeroed flags and
and undefined frame ID.
This constructor should not be called by normal users of FrameHeader
objects. Use the factory method
getNewInstance(short version) instead.
FrameHeader_3_0_NoCompression
public FrameHeader_3_0_NoCompression(java.io.InputStream in)
throws java.io.IOException,
PaddingException,
TagDataFormatException
- Constructs a FrameHeader_3_0 from an InputStream.
This should not be called by normal users of FrameHeader objects.
Use the factory class method
getNewInstance(short version, InputStream in) instead.
- Parameters:
in
- An InputStream from which to read the FrameHeader information.
- Throws:
PaddingException
- if all the read bytes are nulls
java.io.IOException
- if the InputStream throws one
TagDataFormatException
processOutput
protected java.io.OutputStream processOutput(java.io.OutputStream out)
throws java.io.IOException
- Process the OutputStream in which the frame is to be embedded.
This method is called by
Frame
subclasses
when the frame is being written to a file or stream
A FrameHeader
subclass should override this method and apply
whatever calculations and FilterOutputStream
subclasses
are necessary to output a correct stream of the frame. See the method
postProcessUnsynchronization()
of Flags
for an example of a FilterOutputStream
that can be
applied through this method.
- Overrides:
processOutput
in class FrameHeader_3_0
- Parameters:
out
- the OutputStream to which the frame will be written
- Returns:
- the OutputStream to which the frame will be written
- Throws:
java.io.IOException
- if an error occurs