public class ImageProperty extends BinaryProperty<ImageType>
contentType, data, url
group, parameters
Constructor and Description |
---|
ImageProperty(byte[] data,
ImageType type)
Creates an image property.
|
ImageProperty(ImageProperty original)
Copy constructor.
|
ImageProperty(InputStream in,
ImageType type)
Creates an image property.
|
ImageProperty(Path file,
ImageType type)
Creates an image property.
|
ImageProperty(String url,
ImageType type)
Creates an image property.
|
_validate, equals, getAltId, getContentType, getData, getPids, getPref, getType, getUrl, hashCode, setAltId, setContentType, setData, setPref, setType, setUrl, toStringValues
addParameter, compareTo, copy, getGroup, getParameter, getParameters, getParameters, getSupportedVersions, isSupportedBy, removeParameter, setGroup, setParameter, setParameters, toString, validate
public ImageProperty(String url, ImageType type)
url
- the URL to the imagetype
- the content type (e.g. JPEG)public ImageProperty(byte[] data, ImageType type)
data
- the binary data of the imagetype
- the content type (e.g. JPEG)public ImageProperty(InputStream in, ImageType type) throws IOException
in
- an input stream to the binary data (will be closed)type
- the content type (e.g. JPEG)IOException
- if there's a problem reading from the input streampublic ImageProperty(Path file, ImageType type) throws IOException
file
- the image filetype
- the content type (e.g. JPEG)IOException
- if there's a problem reading from the filepublic ImageProperty(ImageProperty original)
original
- the property to make a copy ofCopyright © 2012–2023 Michael Angstadt. All rights reserved.