|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.client.uploader.ByteArrayUploadData
public class ByteArrayUploadData
An implementation of UploadData that provides data from a byte[].
| Constructor Summary | |
|---|---|
ByteArrayUploadData(byte[] buffer)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayUploadData(byte[] buffer)
| Method Detail |
|---|
public long length()
UploadData
length in interface UploadData
public void read(byte[] destination)
throws java.io.IOException
UploadDatadestination.length bytes from the current position into
the destination buffer.
read in interface UploadDatajava.io.IOException - if the data could not be read.public void setPosition(long position)
UploadDataread will begin.
setPosition in interface UploadData
public int read(byte[] chunk,
int i,
int length)
UploadDatalength bytes into the chunk buffer.
read in interface UploadDatai - the start offset in the destination buffer.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||