|
|||||||||
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,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap
|
Constructor Summary | |
---|---|
Data()
|
|
Data(Data other)
Performs a deep copy on other. |
Method Summary | |
---|---|
Data |
clone()
Deprecated. |
int |
compareTo(Data other)
|
Data |
deepCopy()
|
boolean |
equals(Data that)
|
boolean |
equals(java.lang.Object that)
|
byte[] |
getBody()
|
byte[] |
getBodyHash()
|
java.lang.Object |
getFieldValue(Data._Fields field)
|
java.lang.Object |
getFieldValue(int fieldId)
|
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 |
isSet(int fieldID)
|
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(org.apache.thrift.protocol.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 |
setFieldValue(int fieldID,
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(org.apache.thrift.protocol.TProtocol oprot)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.util.Map<Data._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail |
---|
public Data()
public Data(Data other)
Method Detail |
---|
public Data deepCopy()
deepCopy
in interface org.apache.thrift.TBase<Data._Fields>
@Deprecated public Data clone()
clone
in class java.lang.Object
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)
setFieldValue
in interface org.apache.thrift.TBase<Data._Fields>
public void setFieldValue(int fieldID, java.lang.Object value)
setFieldValue
in interface org.apache.thrift.TBase<Data._Fields>
public java.lang.Object getFieldValue(Data._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<Data._Fields>
public java.lang.Object getFieldValue(int fieldId)
getFieldValue
in interface org.apache.thrift.TBase<Data._Fields>
public boolean isSet(Data._Fields field)
isSet
in interface org.apache.thrift.TBase<Data._Fields>
public boolean isSet(int fieldID)
isSet
in interface org.apache.thrift.TBase<Data._Fields>
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)
compareTo
in interface java.lang.Comparable<Data>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<Data._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<Data._Fields>
org.apache.thrift.TException
public java.lang.String toString()
toString
in class java.lang.Object
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |