|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jaudiotagger.audio.asf.io.AsfExtHeaderModifier
public class AsfExtHeaderModifier
This modifier manipulates an ASF header extension object.
Field Summary | |
---|---|
private java.util.List<ChunkModifier> |
modifierList
List of modifiers which are to be applied to contained chunks. |
Constructor Summary | |
---|---|
AsfExtHeaderModifier(java.util.List<ChunkModifier> modifiers)
Creates an instance. |
Method Summary | |
---|---|
private void |
copyChunk(GUID guid,
java.io.InputStream source,
java.io.OutputStream destination)
Simply copies a chunk from source to
destination .The method assumes, that the GUID has already been read and will write the provided one to the destination. The chunk length however will be read and used to determine the amount of bytes to copy. |
boolean |
isApplicable(GUID guid)
Determines, whether the modifier handles chunks identified by given guid . |
ModificationResult |
modify(GUID guid,
java.io.InputStream source,
java.io.OutputStream destination)
Writes a modified copy of the chunk into the destination. . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.List<ChunkModifier> modifierList
Constructor Detail |
---|
public AsfExtHeaderModifier(java.util.List<ChunkModifier> modifiers)
modifiers
- modifiers to apply.Method Detail |
---|
private void copyChunk(GUID guid, java.io.InputStream source, java.io.OutputStream destination) throws java.io.IOException
source
to
destination
.
guid
- GUID of the current CHUNK.source
- source of an ASF chunk, which is to be located at the chunk
length field.destination
- the destination to copy the chunk to.
java.io.IOException
- on I/O errors.public boolean isApplicable(GUID guid)
guid
.
isApplicable
in interface ChunkModifier
guid
- GUID to test.
true
, if this modifier can be used to modify the
chunk.public ModificationResult modify(GUID guid, java.io.InputStream source, java.io.OutputStream destination) throws java.io.IOException
destination.
.
modify
in interface ChunkModifier
guid
- GUID of the chunk to modify.source
- a stream providing the chunk, starting at the chunks length
field.destination
- destination for the modified chunk.
java.io.IOException
- on I/O errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |