|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.protocols.smpp.gsm.AbstractHeaderElement
org.mobicents.protocols.smpp.gsm.ems.Picture
public abstract class Picture
Base class for picture implementations.
| Constructor Summary | |
|---|---|
Picture(int iei,
BufferedImage image)
|
|
Picture(int iei,
BufferedImage image,
int position)
|
|
| Method Summary | |
|---|---|
protected abstract void |
checkImage(BufferedImage image)
Check if an image is ok to encode as this Picture type. |
protected boolean |
doWrite(int segmentNum,
ByteBuffer buffer)
|
byte[] |
getData()
|
protected int |
getExtraHeaderSize()
Get the number of bytes, beyond the image position, that this picture implementation needs to write to the header. |
int |
getLength()
Get the total number of octets this header element encodes as excluding the IEI and the IEI-Data-Length fields. |
int |
getPosition()
|
void |
setPosition(int position)
|
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.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 |
|---|
public Picture(int iei,
BufferedImage image)
public Picture(int iei,
BufferedImage image,
int position)
| Method Detail |
|---|
public int getLength()
HeaderElement
public int getPosition()
public void setPosition(int position)
public byte[] getData()
protected boolean doWrite(int segmentNum,
ByteBuffer buffer)
doWrite in class AbstractHeaderElementprotected abstract void checkImage(BufferedImage image)
image - The image to check.protected int getExtraHeaderSize()
protected void writeHeader(BufferedImage image,
ByteBuffer buffer)
This default method does nothing, leaving the buffer unaffected.
image - The image this picture represents.buffer - The buffer to write header information to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||