com.netmera.mobile
Class NetmeraMedia

java.lang.Object
  extended by com.netmera.mobile.NetmeraMedia

public class NetmeraMedia
extends java.lang.Object

NetmeraMedia object is used to create media content.

Its constructor is used to create different types of media content.


Nested Class Summary
static class NetmeraMedia.PhotoSize
          Type of the photo size.
 
Constructor Summary
NetmeraMedia(byte[] data)
          Constructor that takes byte array as a parameter and creates NetmeraMedia object.
 
Method Summary
 byte[] getData()
          Returns the image data as byte array.
 java.lang.String getUrl(NetmeraMedia.PhotoSize size)
          Returns the URL of file with the given size.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetmeraMedia

public NetmeraMedia(byte[] data)
Constructor that takes byte array as a parameter and creates NetmeraMedia object.

Parameters:
data - The image's data as byte array
Method Detail

getData

public byte[] getData()
Returns the image data as byte array.

Returns:
Returns the image data as byte array.

getUrl

public java.lang.String getUrl(NetmeraMedia.PhotoSize size)
                        throws NetmeraException
Returns the URL of file with the given size.

Parameters:
size - NetmeraMedia.PhotoSize object
Returns:
URL of the photo with the given size.
Throws:
NetmeraException