public class AbuseReason extends DataStructureImpl
| Constructor and Description |
|---|
AbuseReason()Create a new abuse reason. |
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(Object object)Compares this abuse reason with another object for equality. |
String | getReason()Get the abuse reason. |
int | hashCode()Hash code derived from the reason string. |
void | readBytes(InputStream in)Reads the abuse reason from a stream. |
void | setReason(String reason)Set abuse reason. |
String | toString()Returns a string representation of this abuse reason. |
void | writeBytes(OutputStream out)Writes the abuse reason to a stream. |
calculateHash, fromBase64, fromByteArray, read, toBase64, toByteArraypublic boolean equals(Object object)
public String getReason()
public int hashCode()
public void readBytes(InputStream in) throws DataFormatException, IOException
in - stream to read fromDataFormatException - if the data is improperly formattedIOException - if there was a problem reading the streampublic void setReason(String reason)
reason - the abuse reasonpublic String toString()
public void writeBytes(OutputStream out) throws DataFormatException, IOException
out - stream to write toDataFormatException - if the data was incomplete or not yet ready to be writtenIOException - if there was a problem writing to the stream