public class

FileData

extends Data
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
From class java.lang.Object
From interface com.evernote.thrift.TBase
From interface java.lang.Comparable

Public Constructors

public FileData (byte[] bodyHash, File file)

Create a new FileData.

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)

Throws
TException