| java.lang.Object |
| ↳ |
com.google.gdata.client.uploader.FileUploadData |
Class Overview
An implementation of UploadData that provides data from a File.
Summary
| Fields |
|
private
final
File |
file |
|
|
private
FileInputStream |
stream |
|
| Public Methods |
|
String
|
getFileName()
Gets the filename.
|
|
long
|
length()
Returns the total number of bytes of data in the buffer.
|
|
void
|
read(byte[] destination)
Reads up to destination.length bytes from the current position into
the destination buffer.
|
|
int
|
read(byte[] chunk, int i, int length)
Reads up to length bytes into the chunk buffer.
|
|
void
|
setPosition(long position)
Sets the offset from the start of the the source data from which the next
read will begin.
|
|
[Expand]
Inherited Methods |
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.client.uploader.UploadData
|
abstract
long
|
length()
Returns the total number of bytes of data in the buffer.
|
|
abstract
void
|
read(byte[] destination)
Reads up to destination.length bytes from the current position into
the destination buffer.
|
|
abstract
int
|
read(byte[] chunk, int i, int length)
Reads up to length bytes into the chunk buffer.
|
|
abstract
void
|
setPosition(long position)
Sets the offset from the start of the the source data from which the next
read will begin.
|
|
Fields
private
FileInputStream
stream
Public Constructors
public
FileUploadData
(File file)
Public Methods
public
String
getFileName
()
public
long
length
()
Returns the total number of bytes of data in the buffer.
public
void
read
(byte[] destination)
Reads up to destination.length bytes from the current position into
the destination buffer.
public
int
read
(byte[] chunk, int i, int length)
Reads up to length bytes into the chunk buffer.
Parameters
| chunk
| |
| i
| The start offset in the destination buffer. |
| length
| |
public
void
setPosition
(long position)
Sets the offset from the start of the the source data from which the next
read will begin.