FileDocCategorySizeDatePackage
StreamWriterControl.javaAPI DocJMF 2.1.1e1149Mon May 12 12:20:36 BST 2003javax.media.control

StreamWriterControl

public interface StreamWriterControl implements Control
This interface is implemented by a Multiplexer or DataSink to enable controlling the number of bytes generated as output. For instance, if a QuickTime Multiplexer is generating a QuickTime file that's being written to disk, the application can use this control to restrict the size of the output file.

Fields Summary
Constructors Summary
Methods Summary
public longgetStreamSize()
Returns the number of bytes written to the stream so far. If unknown, it returns -1.

public booleansetStreamSizeLimit(long numOfBytes)
Sets a limit on the number of bytes that a stream writer can generate. This value can be ignored or treated as an approximate limit by the object generating the stream.

return
true if the stream writer could succesfully set the stream size limit, false if the feature is not supported or the numOfBytes parameter is invalid.