public class

MediaByteArraySource

extends BaseMediaSource
java.lang.Object
   ↳ com.google.gdata.data.media.BaseMediaSource
     ↳ com.google.gdata.data.media.MediaByteArraySource

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.

See Also

Summary

Fields
private byte[] mediaBytes
[Expand]
Inherited Fields
From class com.google.gdata.data.media.BaseMediaSource
Public Constructors
MediaByteArraySource(byte[] mediaBytes, String mediaType)
Constructs a new MediaBteyArraySource using the specified byte data and content type.
Public Methods
InputStream getInputStream()
OutputStream getOutputStream()
[Expand]
Inherited Methods
From class com.google.gdata.data.media.BaseMediaSource
From class java.lang.Object
From interface com.google.gdata.data.media.MediaSource
From interface javax.activation.DataSource

Fields

private byte[] mediaBytes

Public Constructors

public MediaByteArraySource (byte[] mediaBytes, String mediaType)

Constructs a new MediaBteyArraySource using the specified byte data and content type.

Parameters
mediaBytes
mediaType

Public Methods

public InputStream getInputStream ()

public OutputStream getOutputStream ()