com.evolution.player.core.media
Class EncriptedMedia

java.lang.Object
  extended by com.evolution.player.core.media.EncriptedMedia

public abstract class EncriptedMedia
extends java.lang.Object

An encripted media is a media which is somehow encripted by an EncryptingMusicProvider.

Since:
0.6
See Also:
EncryptingMusicProvider

Constructor Summary
EncriptedMedia()
           
 
Method Summary
abstract  java.io.InputStream createInputStream()
          Stream to read the content of this media.
abstract  int getLength()
          The size in byte of this media.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncriptedMedia

public EncriptedMedia()
Method Detail

getLength

public abstract int getLength()
The size in byte of this media.

Returns:
the size in bytes.

createInputStream

public abstract java.io.InputStream createInputStream()
                                               throws java.io.IOException
Stream to read the content of this media.

Returns:
a stream to read the content
Throws:
java.io.IOException - if the stream could not be created