|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSCCT.JavaSubscriber.SCCT_AbstractPackage
SCCT.JavaSubscriber.SCCT_AbstractDataPackage
SCCT.JavaSubscriber.SCCT_ImagePackage
public class SCCT_ImagePackage
This class represents an image package. *This class is available only in PRO version.*
Field Summary | |
---|---|
static int |
FORMAT_BMP
|
static int |
FORMAT_JPEG
|
static int |
FORMAT_PNG
|
static int |
FORMAT_TIFF
|
Constructor Summary | |
---|---|
SCCT_ImagePackage(byte[] image,
int format)
|
|
SCCT_ImagePackage(byte[] image,
int format,
java.lang.String description,
java.lang.String[] attributes)
|
|
SCCT_ImagePackage(java.io.File image,
int format)
|
|
SCCT_ImagePackage(java.io.File image,
int format,
java.lang.String description,
java.lang.String[] attributes)
|
Method Summary | |
---|---|
java.lang.String[] |
getAttributes()
Gets an array of attributes associated with the image. |
java.awt.image.BufferedImage |
getBufferedImage()
Returns a BufferedImage object of the java.awt.image.BufferedImage package that rappresents the image. |
byte[] |
getBytes()
Gets a sequence of bytes that represents the image. |
java.lang.String |
getDescription()
Gets the description associated with the image. |
int |
getImageFormat()
Return the fortmat of the image. |
Methods inherited from class SCCT.JavaSubscriber.SCCT_AbstractDataPackage |
---|
getSourceDescription, getSourceId |
Methods inherited from class SCCT.JavaSubscriber.SCCT_AbstractPackage |
---|
getCalendar, getPackageNumber |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FORMAT_PNG
public static final int FORMAT_JPEG
public static final int FORMAT_BMP
public static final int FORMAT_TIFF
Constructor Detail |
---|
public SCCT_ImagePackage(java.io.File image, int format, java.lang.String description, java.lang.String[] attributes) throws java.io.IOException
image
- It's a File object of java.io package that represents the image to send.format
- The format of the image.description
- It's the description to associate with the image.attributes
- It's the array of attributes to send with the image.
java.io.IOException
- If an error occurs, in order to open the file.public SCCT_ImagePackage(java.io.File image, int format) throws java.io.IOException
image
- It's a File object of java.io package that represents the image to send.format
- The format of the image.
java.io.IOException
- If an error occurs, in order to open the file.public SCCT_ImagePackage(byte[] image, int format)
image
- It's the image in a byte array.format
- The format of the image.public SCCT_ImagePackage(byte[] image, int format, java.lang.String description, java.lang.String[] attributes)
image
- It's the image to send in a byte array.format
- The format of the image.description
- It's the description to associate with the image.attributes
- It's the array of attributes to send with the image.Method Detail |
---|
public int getImageFormat()
public java.lang.String getDescription()
public byte[] getBytes()
public java.lang.String[] getAttributes()
public java.awt.image.BufferedImage getBufferedImage() throws java.io.IOException
java.io.IOException
- If an error occurs, in order to decode the image.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |