ProfileInfo.java
上传用户:qingzhou
上传日期:2013-04-21
资源大小:733k
文件大小:1k
- package magick;
- /**
- * Class encapsulating some profile related to a image.
- * This class corresponds to the ProfileInfo structure in
- * the C API. ProfileInfo is currently used in the Image
- * structure to store the ICC and IPTC profiles.
- * @author Eric Yeo <ttey@yeo.nu>
- */
- public class ProfileInfo {
- /**
- * Name of the profile.
- */
- String name = null;
- /**
- * Profile information.
- */
- byte[] info = null;
- /**
- * Constructor.
- */
- public ProfileInfo()
- {
- }
- /**
- * Constructor.
- * @param name name of the profile
- * @param info the profile information
- */
- public ProfileInfo(String name, byte[] info)
- {
- this.name = name;
- this.info = info;
- }
- /**
- * Get the profile name.
- * @return the profile name
- */
- public String getName()
- {
- return name;
- }
- /**
- * Set the profile name.
- */
- public void setName(String name)
- {
- this.name = name;
- }
- /**
- * Get the profile info.
- * @return the profile info
- */
- public byte[] getInfo()
- {
- return info;
- }
- /**
- * Set the profile info.
- */
- public void setInfo(byte[] info)
- {
- this.info = info;
- }
- }