|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.evernote.edam.type.Data
public class Data
In several places, EDAM exchanges blocks of bytes of data for a component which may be relatively large. For example: the contents of a clipped HTML note, the bytes of an embedded image, or the recognition XML for a large image. This structure is used in the protocol to represent any of those large blocks of data when they are transmitted or when they are only referenced their metadata.
| Constructor Summary | |
|---|---|
Data()
|
|
Data(Data other)
Performs a deep copy on other. |
|
| Method Summary | |
|---|---|
void |
clear()
Return to the state of having just been initialized, as though you had just called the default constructor. |
int |
compareTo(Data other)
|
Data |
deepCopy()
Creates a deep copy of the object. |
boolean |
equals(Data that)
|
boolean |
equals(Object that)
|
byte[] |
getBody()
|
byte[] |
getBodyHash()
|
int |
getSize()
|
int |
hashCode()
|
boolean |
isSetBody()
Returns true if field body is set (has been asigned a value) and false otherwise |
boolean |
isSetBodyHash()
Returns true if field bodyHash is set (has been asigned a value) and false otherwise |
boolean |
isSetSize()
Returns true if field size is set (has been asigned a value) and false otherwise |
void |
read(TProtocol iprot)
Reads an instance of the object from the given protocol. |
void |
setBody(byte[] body)
|
void |
setBodyHash(byte[] bodyHash)
|
void |
setBodyHashIsSet(boolean value)
|
void |
setBodyIsSet(boolean value)
|
void |
setSize(int size)
|
void |
setSizeIsSet(boolean value)
|
String |
toString()
|
void |
unsetBody()
|
void |
unsetBodyHash()
|
void |
unsetSize()
|
void |
validate()
|
void |
write(TProtocol oprot)
Writes the object to the given protocol. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Data()
public Data(Data other)
| Method Detail |
|---|
public Data deepCopy()
TBase
deepCopy in interface TBase<Data>public void clear()
TBase
clear in interface TBase<Data>public byte[] getBodyHash()
public void setBodyHash(byte[] bodyHash)
public void unsetBodyHash()
public boolean isSetBodyHash()
public void setBodyHashIsSet(boolean value)
public int getSize()
public void setSize(int size)
public void unsetSize()
public boolean isSetSize()
public void setSizeIsSet(boolean value)
public byte[] getBody()
public void setBody(byte[] body)
public void unsetBody()
public boolean isSetBody()
public void setBodyIsSet(boolean value)
public boolean equals(Object that)
equals in class Objectpublic boolean equals(Data that)
public int hashCode()
hashCode in class Objectpublic int compareTo(Data other)
compareTo in interface Comparable<Data>
public void read(TProtocol iprot)
throws TException
TBase
read in interface TBase<Data>iprot - Input protocol
TException
public void write(TProtocol oprot)
throws TException
TBase
write in interface TBase<Data>oprot - Output protocol
TExceptionpublic String toString()
toString in class Object
public void validate()
throws TException
TException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||