org.jaudiotagger.audio.asf.io
Interface WriteableChunk

All Known Implementing Classes:
ContentBranding, ContentDescription, MetadataContainer

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

Method Summary
 long getCurrentAsfChunkSize()
          This method calculates the total amount of bytes, the chunk would consume in an ASF file.
 GUID getGuid()
          Returns the GUID of the chunk.
 boolean isEmpty()
          true if it is not necessary to write the chunk into an ASF file, since it contains no information.
 long writeInto(java.io.OutputStream out)
          Writes the chunk into the specified output stream, as ASF stream chunk.
 

Method Detail

getCurrentAsfChunkSize

long getCurrentAsfChunkSize()
This method calculates the total amount of bytes, the chunk would consume in an ASF file.

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

getGuid

GUID getGuid()
Returns the GUID of the chunk.

Returns:
GUID of the chunk.

isEmpty

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

Returns:
true if no useful data will be preserved.

writeInto

long writeInto(java.io.OutputStream out)
               throws java.io.IOException
Writes the chunk into the specified output stream, as ASF stream chunk.

Parameters:
out - stream to write into.
Returns:
amount of bytes written.
Throws:
java.io.IOException - on I/O errors