| java.lang.Object |
| ↳ |
com.evernote.edam.type.Data |
| |
↳ |
com.evernote.client.conn.mobile.FileData |
Class Overview
Implements a replacement for com.evernote.edam.type.Data that retrieves
the actual binary data to be sent from a File instead of a byte array.
This allows large Thrift messages to be assembled without the entire message
being stored in memory.
To use this class, simply replace all uses of com.evernote.edam.type.Data with
com.evernote.android.edam.FileData when creating new Data objects to send to
Evernote.
Summary
| Public Constructors |
|
|
FileData(byte[] bodyHash, File file)
Create a new FileData.
|
| Public Methods |
|
void
|
write(TProtocol oprot)
|
|
[Expand]
Inherited Methods |
From class
com.evernote.edam.type.Data
|
void
|
clear()
|
|
int
|
compareTo(Object arg0)
|
|
int
|
compareTo(Data arg0)
|
|
TBase
|
deepCopy()
|
|
boolean
|
equals(Object arg0)
|
|
boolean
|
equals(Data arg0)
|
|
byte[]
|
getBody()
|
|
byte[]
|
getBodyHash()
|
|
int
|
getSize()
|
|
int
|
hashCode()
|
|
boolean
|
isSetBody()
|
|
boolean
|
isSetBodyHash()
|
|
boolean
|
isSetSize()
|
|
void
|
read(TProtocol arg0)
|
|
void
|
setBody(byte[] arg0)
|
|
void
|
setBodyHash(byte[] arg0)
|
|
void
|
setBodyHashIsSet(boolean arg0)
|
|
void
|
setBodyIsSet(boolean arg0)
|
|
void
|
setSize(int arg0)
|
|
void
|
setSizeIsSet(boolean arg0)
|
|
String
|
toString()
|
|
void
|
unsetBody()
|
|
void
|
unsetBodyHash()
|
|
void
|
unsetSize()
|
|
void
|
validate()
|
|
void
|
write(TProtocol arg0)
|
|
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.evernote.thrift.TBase
|
abstract
void
|
clear()
|
|
abstract
TBase<T>
|
deepCopy()
|
|
abstract
void
|
read(TProtocol arg0)
|
|
abstract
void
|
write(TProtocol arg0)
|
|
From interface
java.lang.Comparable
|
abstract
int
|
compareTo(T arg0)
|
|
Public Constructors
public
FileData
(byte[] bodyHash, File file)
Parameters
| bodyHash |
An MD5 hash of the binary data contained in the file. |
| file |
The file containing the binary data.
|
Public Methods
public
void
write
(TProtocol oprot)