| Modifier and Type | Method and Description |
|---|---|
MediaSource |
MediaService.getMedia(IMediaContent mediaContent)
Returns a
MediaSource that can be used to read the external
media content of an entry. |
MediaSource |
MediaService.getMedia(IMediaContent mediaContent,
DateTime ifModifiedSince)
Returns a
MediaSource that can be used to read the external
media content of an entry. |
| Modifier and Type | Method and Description |
|---|---|
<E extends IEntry> |
MediaService.insert(URL feedUrl,
Class<E> entryClass,
MediaSource media)
Inserts a new media resource read from
MediaSource into a
media feed associated with the target service. |
<E extends IEntry> |
MediaService.updateMedia(URL mediaUrl,
Class<E> entryClass,
MediaSource media)
Updates an existing media resource with data read from the
MediaSource by writing it it to the specified media edit URL. |
| Modifier and Type | Field and Description |
|---|---|
protected MediaSource |
MediaContent.mediaSource
MediaSource associated with the external content.
|
| Modifier and Type | Method and Description |
|---|---|
MediaSource |
MediaContent.getMediaSource()
Returns the media source associated with the content or
null. |
| Modifier and Type | Method and Description |
|---|---|
void |
MediaContent.setMediaSource(MediaSource v)
Sets the media source associated with the content (may be
null
if no supplied content. |
| Modifier and Type | Class and Description |
|---|---|
class |
Rfc822MediaSource
MediaSource that wraps an RFC822 message in UTF8 format. |
| Modifier and Type | Class and Description |
|---|---|
class |
BaseMediaSource
The BaseMediaSource class provides an abstract base class
implementation of the
MediaSource interface. |
class |
MediaByteArraySource
The MediaByteArraySource class provides a basic implementation of the
MediaSource interface that reads media data from an in-memory
byte array. |
class |
MediaFileSource
The MediaFileSource class provides a basic implementation of the
MediaSource interface that reads media data from a File. |
class |
MediaStreamSource
The MediaStreamSource class provides a basic implementation of the
MediaSource interface that reads media data from an existing
InputStream. |
| Modifier and Type | Method and Description |
|---|---|
MediaSource |
MediaEntry.getMediaSource() |
MediaSource |
MediaBodyPart.getMediaSource()
Returns the media source associated with the body part.
|
MediaSource |
IMediaEntry.getMediaSource()
Returns the
MediaSource that contains the media data for the entry. |
MediaSource |
IMediaContent.getMediaSource()
Returns the media source associated with the content or
null. |
| Modifier and Type | Method and Description |
|---|---|
E |
MediaFeed.insert(MediaSource media)
Inserts a new media resource into the feed, if the feed is currently
associated with a Service.
|
protected <T extends E> |
MediaFeed.insert(MediaSource media,
Class<T> mediaEntryClass)
Inserts a new media resource into the feed, if the feed is currently
associated with a Service.
|
void |
MediaEntry.setMediaSource(MediaSource mediaSource) |
void |
IMediaEntry.setMediaSource(MediaSource source)
Sets the
MediaSource that contains the media data for the entry. |
void |
IMediaContent.setMediaSource(MediaSource v)
Sets the media source associated with the content (may be
null
if no supplied content). |
static void |
MediaSource.Output.writeTo(MediaSource source,
OutputStream outputStream)
Helper method that writes the contents of a media source to an output
stream.
|
| Constructor and Description |
|---|
MediaBodyPart(MediaSource mediaSource) |
MediaMultipart(IEntry entry,
MediaSource media)
Constructs a new MediaMultipart instance from an Atom entry instance
and a media source.
|
| Modifier and Type | Method and Description |
|---|---|
PhotoEntry |
AlbumFeed.insertPhoto(MediaSource photoSource)
Insert a photo into this album by inserting a
MediaSource
containing the photo data. |
| Modifier and Type | Method and Description |
|---|---|
<R extends MediaSource> |
MediaParser.parse(ParseSource parseSource,
InputProperties inProps,
Class<R> resultClass) |
| Modifier and Type | Method and Description |
|---|---|
Class<MediaSource> |
MediaGenerator.getSourceType() |
| Modifier and Type | Method and Description |
|---|---|
void |
MediaGenerator.generate(OutputStream contentStream,
OutputProperties request,
MediaSource source)
Generates output for requests that target media resources.
|
Copyright © 2012. All Rights Reserved.