|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.data.media.BaseMediaSource
com.google.gdata.data.media.MediaByteArraySource
public class MediaByteArraySource
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.
MediaSource| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.google.gdata.data.media.MediaSource |
|---|
MediaSource.Output |
| Field Summary |
|---|
| Fields inherited from class com.google.gdata.data.media.BaseMediaSource |
|---|
contentLength, etag, lastModified, mediaType, name |
| Constructor Summary | |
|---|---|
MediaByteArraySource(byte[] mediaBytes,
java.lang.String mediaType)
Constructs a new MediaBteyArraySource using the specified byte data and content type. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
getInputStream()
|
java.io.OutputStream |
getOutputStream()
|
| Methods inherited from class com.google.gdata.data.media.BaseMediaSource |
|---|
getContentLength, getContentType, getEtag, getLastModified, getName, setContentLength, setEtag, setLastModified, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MediaByteArraySource(byte[] mediaBytes,
java.lang.String mediaType)
| Method Detail |
|---|
public java.io.InputStream getInputStream()
public java.io.OutputStream getOutputStream()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||