public class ImageProperty extends BinaryProperty<ImageType>
contentType, data, url
group, parameters
Constructor and Description |
---|
ImageProperty(byte[] data,
ImageType type)
Creates an image property.
|
ImageProperty(File file,
ImageType type)
Creates an image property.
|
ImageProperty(InputStream in,
ImageType type)
Creates an image property.
|
ImageProperty(String url,
ImageType type)
Creates an image property.
|
_validate, addPid, getAltId, getContentType, getData, getPids, getPref, getType, getUrl, removePids, setAltId, setContentType, setData, setPref, setType, setUrl
_supportedVersions, addParameter, compareTo, getGroup, getParameter, getParameters, getParameters, getSupportedVersions, removeParameter, setGroup, setParameter, setParameters, 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(File file, ImageType type) throws IOException
file
- the image filetype
- the content type (e.g. JPEG)IOException
- if there's a problem reading from the fileThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.