|
|||||||||
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.
Nested Class Summary | |
---|---|
static class |
Data._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
Field Summary | |
---|---|
static java.util.Map<Data._Fields,FieldMetaData> |
metaDataMap
|
Constructor Summary | |
---|---|
Data()
|
|
Data(Data other)
Performs a deep copy on other. |
Method Summary | |
---|---|
void |
clear()
|
int |
compareTo(Data other)
|
Data |
deepCopy()
|
boolean |
equals(Data that)
|
boolean |
equals(java.lang.Object that)
|
Data._Fields |
fieldForId(int fieldId)
|
byte[] |
getBody()
|
byte[] |
getBodyHash()
|
java.lang.Object |
getFieldValue(Data._Fields field)
|
int |
getSize()
|
int |
hashCode()
|
boolean |
isSet(Data._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise |
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)
|
void |
setBody(byte[] body)
|
void |
setBodyHash(byte[] bodyHash)
|
void |
setBodyHashIsSet(boolean value)
|
void |
setBodyIsSet(boolean value)
|
void |
setFieldValue(Data._Fields field,
java.lang.Object value)
|
void |
setSize(int size)
|
void |
setSizeIsSet(boolean value)
|
java.lang.String |
toString()
|
void |
unsetBody()
|
void |
unsetBodyHash()
|
void |
unsetSize()
|
void |
validate()
|
void |
write(TProtocol oprot)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.util.Map<Data._Fields,FieldMetaData> metaDataMap
Constructor Detail |
---|
public Data()
public Data(Data other)
Method Detail |
---|
public Data deepCopy()
public void clear()
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 void setFieldValue(Data._Fields field, java.lang.Object value)
public java.lang.Object getFieldValue(Data._Fields field)
public boolean isSet(Data._Fields field)
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public boolean equals(Data that)
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Data other)
public Data._Fields fieldForId(int fieldId)
public void read(TProtocol iprot) throws TException
TException
public void write(TProtocol oprot) throws TException
TException
public java.lang.String toString()
toString
in class java.lang.Object
public void validate() throws TException
TException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |