public class ChunkRemover extends Object implements ChunkModifier
ChunkModifier
implementation is meant to remove selected chunks.Constructor and Description |
---|
ChunkRemover(GUID... guids)
Creates an instance, for removing selected chunks.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isApplicable(GUID guid)
Determines, whether the modifier handles chunks identified by given
guid . |
org.jaudiotagger.audio.asf.io.ModificationResult |
modify(GUID guid,
InputStream source,
OutputStream destination)
Writes a modified copy of the chunk into the
destination. . |
public ChunkRemover(GUID... guids)
guids
- the GUIDs which are about to be removed by this modifier.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 org.jaudiotagger.audio.asf.io.ModificationResult modify(GUID guid, InputStream source, OutputStream destination) throws 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.IOException
- on I/O errors.Copyright © 2005–2020 jthink.net. All rights reserved.