Class RepeatableMedia

java.lang.Object
org.zkoss.util.media.RepeatableMedia
All Implemented Interfaces:
Serializable, Media

public class RepeatableMedia extends Object implements Media, Serializable
RepeatableMedia adds functionality to another media, the ability to read repeatedly. Unlike other media, RepeatableMedia uses RepeatableInputStream, if binary, or RepeatableReader to make getStreamData() and getReaderData() to be able to re-open when InputStream.close() or Reader.close() is called. In other words, the buffered input stream of the give media is never closed until it is GC-ed.
Since:
3.0.4
Author:
jumperchen, tomyeh
See Also: