public interface UploadData
| Modifier and Type | Method and Description |
|---|---|
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. |
long length()
void read(byte[] destination)
throws java.io.IOException
destination.length bytes from the current position into
the destination buffer.java.io.IOException - if the data could not be read.int read(byte[] chunk,
int i,
int length)
throws java.io.IOException
length bytes into the chunk buffer.i - the start offset in the destination buffer.java.io.IOException - if the data could not be read.void setPosition(long position)
throws java.io.IOException
read will begin.java.io.IOException - if position is negative or past the end of the data.