org.jaudiotagger.audio.flac
Class FlacTagWriter
java.lang.Object
org.jaudiotagger.audio.flac.FlacTagWriter
public class FlacTagWriter
- extends java.lang.Object
Write Flac Tag
Method Summary |
private int |
computeAvailableRoom()
|
private int |
computeNeededRoom()
|
void |
delete(java.io.RandomAccessFile raf,
java.io.RandomAccessFile tempRaf)
Delete Tag from file |
void |
write(Tag tag,
java.io.RandomAccessFile raf,
java.io.RandomAccessFile rafTemp)
Write tag to file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static java.util.logging.Logger logger
metadataBlockPadding
private java.util.List<MetadataBlock> metadataBlockPadding
metadataBlockApplication
private java.util.List<MetadataBlock> metadataBlockApplication
metadataBlockSeekTable
private java.util.List<MetadataBlock> metadataBlockSeekTable
metadataBlockCueSheet
private java.util.List<MetadataBlock> metadataBlockCueSheet
tc
private FlacTagCreator tc
reader
private FlacTagReader reader
FlacTagWriter
public FlacTagWriter()
delete
public void delete(java.io.RandomAccessFile raf,
java.io.RandomAccessFile tempRaf)
throws java.io.IOException,
CannotWriteException
- Delete Tag from file
- Parameters:
raf
- tempRaf
-
- Throws:
java.io.IOException
CannotWriteException
write
public void write(Tag tag,
java.io.RandomAccessFile raf,
java.io.RandomAccessFile rafTemp)
throws CannotWriteException,
java.io.IOException
- Write tag to file
- Parameters:
tag
- raf
- rafTemp
-
- Throws:
CannotWriteException
java.io.IOException
computeAvailableRoom
private int computeAvailableRoom()
- Returns:
- space currently availble for writing all Flac metadatablocks exceprt for StreamInfo which is fixed size
computeNeededRoom
private int computeNeededRoom()
- Returns:
- space required to write the metadata blocks that are part of Flac but are not part of tagdata
in the normal sense.