org.jmythapi.protocol.response.impl
Class Pixmap
java.lang.Object
org.jmythapi.impl.AData<E>
org.jmythapi.protocol.response.impl.AMythResponse<IPixmap.Props>
org.jmythapi.protocol.response.impl.Pixmap
- All Implemented Interfaces:
- Cloneable, IPropertyAware<IPixmap.Props>, IVersionable, ISendable, IMythResponse<IPixmap.Props>, IPixmap
public class Pixmap
- extends AMythResponse<IPixmap.Props>
- implements IPixmap
Nested classes/interfaces inherited from interface org.jmythapi.protocol.response.IPixmap |
IPixmap.Props |
Methods inherited from class org.jmythapi.impl.AData |
clone, equals, getPropertyClass, getPropertyCount, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValueObject, getPropertyValues, getVersionNr, hashCode, init, postProcessArguments, setPropertyValue, setPropertyValue, setPropertyValueObject, toString |
Methods inherited from interface org.jmythapi.IPropertyAware |
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject |
Pixmap
public Pixmap(IMythPacket packet)
Pixmap
public Pixmap(ProtocolVersion protoVersion,
String... responseArgs)
Pixmap
public Pixmap(ProtocolVersion protoVersion,
List<String> responseArgs)
getLastModified
public Date getLastModified()
- Specified by:
getLastModified
in interface IPixmap
getDataSize
public Long getDataSize()
- Description copied from interface:
IPixmap
- Gets the data size in bytes.
- Specified by:
getDataSize
in interface IPixmap
- Returns:
- the amount of returned bytes
getDataCheckSum
public String getDataCheckSum()
- Description copied from interface:
IPixmap
- Gets the pixmap checksum.
- Specified by:
getDataCheckSum
in interface IPixmap
- Returns:
- a checksum.
getDataBase64
public String getDataBase64()
- Description copied from interface:
IPixmap
- Gets the pixmap as base64 encoded string.
- Specified by:
getDataBase64
in interface IPixmap
- Returns:
- the encoded pixmap
getData
public byte[] getData()
- Description copied from interface:
IPixmap
- Gets the pixmap as byte array.
- Specified by:
getData
in interface IPixmap
- Returns:
- the pixmap as byte array.
getDataStream
public InputStream getDataStream()
- Description copied from interface:
IPixmap
- Gets the pixmap as stream.
- Specified by:
getDataStream
in interface IPixmap
- Returns:
- a pixmap stream.
getImage
public BufferedImage getImage()
throws IOException
- Description copied from interface:
IPixmap
- Gets the pixmap as image.
- Specified by:
getImage
in interface IPixmap
- Returns:
- the pixmap as image.
- Throws:
IOException
- on io errors
valueOf
public static Pixmap valueOf(IMythPacket packet)
valueOf
public static Pixmap valueOf(ProtocolVersion protoVersion,
Date lastModifiedDate)
valueOf
public static Pixmap valueOf(IFileTransfer fileTransfer,
Date lastModifiedDate)
throws IOException
- This method creates a new pixmap object.
- Parameters:
fileTransfer
- the file-transfer object that is used to download the datalastModifiedDate
- the last modified date of the pixmap, if any.
- Returns:
- the pixmap object
- Throws:
IOException
- on communication errors.
Copyright © 2008-2013. All Rights Reserved.