Class Overview
The MediaByteArraySource class provides a basic implementation of the
MediaSource interface that reads media data from an in-memory
byte array. The content length of the media source defaults to the size
of the byte array and the time of modification to the current time.
Summary
| Public Constructors |
|
|
MediaByteArraySource(byte[] mediaBytes, String mediaType)
Constructs a new MediaBteyArraySource using the specified byte data
and content type.
|
|
[Expand]
Inherited Methods |
From class
com.google.gdata.data.media.BaseMediaSource
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.google.gdata.data.media.MediaSource
|
From interface
javax.activation.DataSource
|
abstract
String
|
getContentType()
|
|
abstract
InputStream
|
getInputStream()
|
|
abstract
String
|
getName()
|
|
abstract
OutputStream
|
getOutputStream()
|
|
Fields
private
byte[]
mediaBytes
Public Constructors
public
MediaByteArraySource
(byte[] mediaBytes, String mediaType)
Constructs a new MediaBteyArraySource using the specified byte data
and content type.
Public Methods
public
InputStream
getInputStream
()
public
OutputStream
getOutputStream
()