|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(java.lang.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(com.evernote.thrift.protocol.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)
|
java.lang.String |
toString()
|
void |
unsetBody()
|
void |
unsetBodyHash()
|
void |
unsetSize()
|
void |
validate()
|
void |
write(com.evernote.thrift.protocol.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()
com.evernote.thrift.TBase
deepCopy
in interface com.evernote.thrift.TBase<Data>
public void clear()
com.evernote.thrift.TBase
clear
in interface com.evernote.thrift.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(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(com.evernote.thrift.protocol.TProtocol iprot) throws com.evernote.thrift.TException
com.evernote.thrift.TBase
read
in interface com.evernote.thrift.TBase<Data>
iprot
- Input protocol
com.evernote.thrift.TException
public void write(com.evernote.thrift.protocol.TProtocol oprot) throws com.evernote.thrift.TException
com.evernote.thrift.TBase
write
in interface com.evernote.thrift.TBase<Data>
oprot
- Output protocol
com.evernote.thrift.TException
public java.lang.String toString()
toString
in class java.lang.Object
public void validate() throws com.evernote.thrift.TException
com.evernote.thrift.TException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |