public class WriteableChunkModifer extends Object implements ChunkModifier
WriteableChunk
objects.Constructor and Description |
---|
WriteableChunkModifer(WriteableChunk chunk)
Creates an instance.
|
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 chunk,
OutputStream destination)
Writes a modified copy of the chunk into the
destination. . |
public WriteableChunkModifer(WriteableChunk chunk)
chunk
- chunk to writepublic 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 chunk, OutputStream destination) throws IOException
destination.
.modify
in interface ChunkModifier
guid
- GUID of the chunk to modify.chunk
- 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.