public class ImageData extends Object implements Cloneable, Serializable
ImageData class is used to contain image object data.| Constructor and Description |
|---|
ImageData(byte[] byteArray) |
ImageData(String fileName) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clone implementation that returns an Object with data cloned from self.
|
boolean |
equals(Object obj)
Use this method for checking equality between the current object and the
provided one.
|
int |
getSize()
Retrieves size of the image.
|
byte[] |
getValue()
Retrieves contents of image.
|
int |
hashCode()
Returns the hash code value for this instance of the current class.
|
void |
setValue(byte[] val)
Sets contents of image.
|
String |
toString()
Returns a string description of the object.
|
void |
writeToFile(String fileName)
Save contents of image to a file.
|
public ImageData(String fileName) throws FileNotFoundException
FileNotFoundExceptionpublic ImageData(byte[] byteArray)
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic byte[] getValue()
public void setValue(byte[] val)
public int getSize()
public void writeToFile(String fileName) throws FileNotFoundException
FileNotFoundExceptionpublic boolean equals(Object obj)
public int hashCode()
? Copyright 2013 BMC Software, Inc.