FileDocCategorySizeDatePackage
WriteableChunk.javaAPI DocJaudiotagger 2.0.41375Wed Mar 30 16:11:50 BST 2011org.jaudiotagger.audio.asf.io

WriteableChunk

public interface WriteableChunk
Implementors can write themselves directly to an output stream, and have the ability to tell the size they would need, as well as determine if they are empty.
author
Christian Laireiter

Fields Summary
Constructors Summary
Methods Summary
public longgetCurrentAsfChunkSize()
This method calculates the total amount of bytes, the chunk would consume in an ASF file.

return
amount of bytes the chunk would currently need in an ASF file.

public org.jaudiotagger.audio.asf.data.GUIDgetGuid()
Returns the GUID of the chunk.

return
GUID of the chunk.

public booleanisEmpty()
true if it is not necessary to write the chunk into an ASF file, since it contains no information.

return
true if no useful data will be preserved.

public longwriteInto(java.io.OutputStream out)
Writes the chunk into the specified output stream, as ASF stream chunk.

param
out stream to write into.
return
amount of bytes written.
throws
IOException on I/O errors