com.adobe.flashaccess.sdk.media.drm
Class MediaEncrypterFactory

java.lang.Object
  extended by com.adobe.flashaccess.sdk.media.drm.MediaEncrypterFactory

public class MediaEncrypterFactory
extends java.lang.Object

Examines an input stream and attempts to determine the file type.


Method Summary
static MediaEncrypter getMediaEncrypter(java.io.InputStream mediaContent)
          Gets a MediaEncrypter for the media in the input stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMediaEncrypter

public static MediaEncrypter getMediaEncrypter(java.io.InputStream mediaContent)
                                        throws java.io.IOException,
                                               UnknownMediaException
Gets a MediaEncrypter for the media in the input stream. This method will read from the provided InputStream in order to determine the file type, and then reset the marked InputStream back to the original read position when finished.

Parameters:
mediaContent - An input stream containing the media content. The InputStream implementation must support the mark method (for example, mediaContent.markSupported() == true). A BufferedInputStream supports marking.
Returns:
A MediaEncrypter for the media in the input stream.
Throws:
java.io.IOException - if an error occurs reading the content.
UnknownMediaException - if the file type cannot be determined.


[an error occurred while processing this directive] [an error occurred while processing this directive]