|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PhotoCard
PhotoCard interface Defines methods to be used as interface between photo client and storage smart card
Field Summary | |
---|---|
static short |
INVALID_ARGUMENT
Invalid argument value |
static short |
INVALID_PHOTO_ID
Invalid photo ID |
static short |
MAX_BUFFER_BYTES
Maximum bytes for transfer |
static short |
MAX_PHOTO_COUNT
Maximum on-card photos |
static short |
MAX_SIZE
Maximum photo size |
static short |
NO_PHOTO_STORED
No photo stored in selected location |
static short |
NO_SPACE_AVAILABLE
No space available for photo storage |
Method Summary | |
---|---|
void |
deletePhoto(short photoID)
This method deletes the photo whose ID is specified in the card. |
byte[] |
getPhoto(short photoID,
short offset,
short size)
This method retrueves a series of bytes belonging to the photo from the smart card at the position specified. |
short |
getPhotoSize(short photoID)
This method retrieves the photo size whose ID is specified. |
void |
loadPhoto(short photoID,
byte[] data,
short size,
short offset,
boolean more)
This method loads a series of bytes belonging to the photo into the smart card at the position specified. |
short |
requestPhotoStorage(short size)
This method requests the smart card to allocate space to store a photo image of the specified size. |
Field Detail |
---|
static final short NO_SPACE_AVAILABLE
static final short NO_PHOTO_STORED
static final short INVALID_PHOTO_ID
static final short INVALID_ARGUMENT
static final short MAX_SIZE
static final short MAX_PHOTO_COUNT
static final short MAX_BUFFER_BYTES
Method Detail |
---|
short requestPhotoStorage(short size) throws RemoteException, UserException
size
- - Image size to store in the smart card
UserException
- - thrown if error condition occurs, or
invalid parameters passed.
RemoteException
void loadPhoto(short photoID, byte[] data, short size, short offset, boolean more) throws RemoteException, UserException
photoID
- - photo slot where to store datadata
- - byte array contaiing binary photo informationsize
- - number of bytes being passed into the smart cardoffset
- - position inside photo buffer where to store data.
UserException
- - thrown if error condition occurs, or
invalid parameters passed.
RemoteException
void deletePhoto(short photoID) throws RemoteException, UserException
photoID
- - ID slot of photo to delete
UserException
- - thrown if error condition occurs, or
invalid parameters passed.
RemoteException
short getPhotoSize(short photoID) throws RemoteException, UserException
photoID
- - ID slot of photo to access
UserException
- - thrown if error condition occurs, or
invalid parameters passed.
RemoteException
byte[] getPhoto(short photoID, short offset, short size) throws RemoteException, UserException
photoID
- - photo slot where to store datasize
- - number of bytes expected from the smart cardoffset
- - position inside photo buffer where to access data.
UserException
- - thrown if error condition occurs, or
invalid parameters passed.
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |