Class Overview
The MediaFileSource class provides a basic implementation of the
MediaSource interface that reads media data from a File.
The content length will be initialized to the file length, the last
modified time to the file modification time, and the name of the source
will be the name (last path element) of the file.
Summary
|
[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
Public Constructors
public
MediaFileSource
(File mediaFile, String mediaType)
Public Methods
public
InputStream
getInputStream
()
public
File
getMediaFile
()
public
OutputStream
getOutputStream
()