org.mobicents.protocols.smpp.gsm.ems
Class VariablePicture
java.lang.Object
org.mobicents.protocols.smpp.gsm.AbstractHeaderElement
org.mobicents.protocols.smpp.gsm.ems.Picture
org.mobicents.protocols.smpp.gsm.ems.VariablePicture
- All Implemented Interfaces:
- HeaderElement
public class VariablePicture
- extends Picture
Implementation of a variable picture. See 3GPP TS 23.040 9.2.3.24.10.1.9.
- Version:
- $Id: VariablePicture.java 484 2010-02-08 16:08:50Z orank $
|
Method Summary |
protected void |
checkImage(BufferedImage image)
Check if an image is ok to encode as this Picture type. |
protected int |
getExtraHeaderSize()
Get the number of bytes, beyond the image position, that this
picture implementation needs to write to the header. |
protected void |
writeHeader(BufferedImage image,
ByteBuffer buffer)
Write any extra header information this picture implementation
needs after the 'position' element. |
VariablePicture
public VariablePicture(BufferedImage image,
int position)
VariablePicture
public VariablePicture(BufferedImage image)
getExtraHeaderSize
protected int getExtraHeaderSize()
- Description copied from class:
Picture
- Get the number of bytes, beyond the image position, that this
picture implementation needs to write to the header.
- Overrides:
getExtraHeaderSize in class Picture
- Returns:
- This default implementation returns zero.
writeHeader
protected void writeHeader(BufferedImage image,
ByteBuffer buffer)
- Description copied from class:
Picture
- Write any extra header information this picture implementation
needs after the 'position' element.
This default method does nothing, leaving the buffer unaffected.
- Overrides:
writeHeader in class Picture
- Parameters:
image - The image this picture represents.buffer - The buffer to write header information to.
checkImage
protected void checkImage(BufferedImage image)
- Description copied from class:
Picture
- Check if an image is ok to encode as this Picture type.
- Specified by:
checkImage in class Picture
- Parameters:
image - The image to check.
Copyright © 2011 Mobicents. All Rights Reserved.