org.mobicents.protocols.smpp.gsm.ems
Class VariablePicture

java.lang.Object
  extended by org.mobicents.protocols.smpp.gsm.AbstractHeaderElement
      extended by org.mobicents.protocols.smpp.gsm.ems.Picture
          extended by 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 $

Constructor Summary
VariablePicture(BufferedImage image)
           
VariablePicture(BufferedImage image, int position)
           
 
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.
 
Methods inherited from class org.mobicents.protocols.smpp.gsm.ems.Picture
doWrite, getData, getLength, getPosition, setPosition
 
Methods inherited from class org.mobicents.protocols.smpp.gsm.AbstractHeaderElement
equals, isComplete, isRecurring, postProcess, reset, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariablePicture

public VariablePicture(BufferedImage image,
                       int position)

VariablePicture

public VariablePicture(BufferedImage image)
Method Detail

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.