|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jaudiotagger.audio.asf.io.ChunkRemover
public class ChunkRemover
This ChunkModifier
implementation is meant to remove selected chunks.
Field Summary | |
---|---|
private java.util.Set<GUID> |
toRemove
Stores the GUIDs, which are about to be removed by this modifier. |
Constructor Summary | |
---|---|
ChunkRemover(GUID... guids)
Creates an instance, for removing selected chunks. |
Method Summary | |
---|---|
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.Set<GUID> toRemove
Constructor Detail |
---|
public ChunkRemover(GUID... guids)
guids
- the GUIDs which are about to be removed by this modifier.Method Detail |
---|
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 |