public interface PtpInitiator
extends java.io.Closeable
Modifier and Type | Method and Description |
---|---|
boolean |
addListener(PtpEventListener listener)
Add the listener for PTP event.
|
void |
checkResponse() |
void |
closeSession()
Close the session.
|
void |
deleteObject(UINT32 objectHandle)
Delete the specified object.
|
DeviceInfo |
getDeviceInfo()
Get the DeviceInfo of the responder.
|
DevicePropDesc<?> |
getDevicePropDesc(Code<UINT16> devicePropCode)
Get the description of the device property.
|
java.io.InputStream |
getDevicePropValue(Code<UINT16> devicePropCode) |
java.lang.String |
getDevicePropValueAsString(Code<UINT16> devicePropCode) |
UINT16 |
getDevicePropValueAsUINT16(Code<UINT16> devicePropCode) |
UINT32 |
getDevicePropValueAsUINT32(Code<UINT16> devicePropCode) |
UINT64 |
getDevicePropValueAsUINT64(Code<UINT16> devicePropCode) |
UINT8 |
getDevicePropValueAsUINT8(Code<UINT16> devicePropCode) |
UINT32 |
getNumObjects()
Get number of objects.
|
void |
getObject(UINT32 objectHandle,
java.io.OutputStream dst)
Get the object from the responder.
|
java.util.List<UINT32> |
getObjectHandles()
Get list of object handle.
|
java.util.List<UINT32> |
getObjectHandles(UINT32 storageID)
Get list of object handle.
|
ObjectInfo |
getObjectInfo(UINT32 objectHandle)
Get the information of the object.
|
java.util.List<UINT32> |
getStorageIDs()
Get list of storage ID
|
StorageInfo |
getStorageInfo(UINT32 storageID)
Get storage info
|
void |
getThumb(UINT32 objectHandle,
java.io.OutputStream dst)
Get the thumbnail of specified object handle from the responder.
|
void |
initiateCapture()
Send initiate capture request to the responder.
|
UINT32 |
initiateOpenCapture()
Initiate open capture.
|
void |
openSession(UINT32 sessionID)
Open the session.
|
java.io.InputStream |
receiveData() |
void |
receiveData(java.io.OutputStream dst) |
Response |
receiveResponse() |
boolean |
removeListener(PtpEventListener listener)
Remove the listener for PTP event.
|
void |
sendData(byte[] data) |
UINT32 |
sendOperation(Code<UINT16> operationCode) |
UINT32 |
sendOperation(Code<UINT16> operationCode,
UINT32 p1) |
UINT32 |
sendOperation(Code<UINT16> operationCode,
UINT32 p1,
UINT32 p2) |
UINT32 |
sendOperation(Code<UINT16> operationCode,
UINT32 p1,
UINT32 p2,
UINT32 p3) |
UINT32 |
sendOperation(Code<UINT16> operationCode,
UINT32 p1,
UINT32 p2,
UINT32 p3,
UINT32 p4) |
UINT32 |
sendOperation(Code<UINT16> operationCode,
UINT32 p1,
UINT32 p2,
UINT32 p3,
UINT32 p4,
UINT32 p5) |
void |
setDevicePropValue(Code<UINT16> devicePropValue,
byte value) |
void |
setDevicePropValue(Code<UINT16> devicePropCode,
byte[] value) |
void |
setDevicePropValue(Code<UINT16> devicePropValue,
java.lang.String value) |
void |
setDevicePropValue(Code<UINT16> devicePropValue,
UINT16 value) |
void |
setDevicePropValue(Code<UINT16> devicePropValue,
UINT32 value) |
void |
terminateOpenCapture()
Terminate all capture.
|
void |
terminateOpenCapture(UINT32 transactionID)
Terminate specified capture.
|
UINT32 sendOperation(Code<UINT16> operationCode) throws java.io.IOException
java.io.IOException
UINT32 sendOperation(Code<UINT16> operationCode, UINT32 p1) throws java.io.IOException
java.io.IOException
UINT32 sendOperation(Code<UINT16> operationCode, UINT32 p1, UINT32 p2) throws java.io.IOException
java.io.IOException
UINT32 sendOperation(Code<UINT16> operationCode, UINT32 p1, UINT32 p2, UINT32 p3) throws java.io.IOException
java.io.IOException
UINT32 sendOperation(Code<UINT16> operationCode, UINT32 p1, UINT32 p2, UINT32 p3, UINT32 p4) throws java.io.IOException
java.io.IOException
UINT32 sendOperation(Code<UINT16> operationCode, UINT32 p1, UINT32 p2, UINT32 p3, UINT32 p4, UINT32 p5) throws java.io.IOException
java.io.IOException
DeviceInfo getDeviceInfo() throws java.io.IOException, PtpException
java.io.IOException
PtpException
void openSession(UINT32 sessionID) throws java.io.IOException, PtpException
sessionID
- java.io.IOException
PtpException
void closeSession() throws java.io.IOException, PtpException
java.io.IOException
PtpException
java.util.List<UINT32> getStorageIDs() throws java.io.IOException, PtpException
java.io.IOException
PtpException
StorageInfo getStorageInfo(UINT32 storageID) throws java.io.IOException, PtpException
storageID
- java.io.IOException
PtpException
UINT32 getNumObjects() throws java.io.IOException, PtpException
java.io.IOException
PtpException
java.util.List<UINT32> getObjectHandles() throws java.io.IOException, PtpException
java.io.IOException
PtpException
java.util.List<UINT32> getObjectHandles(UINT32 storageID) throws java.io.IOException, PtpException
storageID
- java.io.IOException
PtpException
ObjectInfo getObjectInfo(UINT32 objectHandle) throws java.io.IOException, PtpException
objectHandle
- java.io.IOException
PtpException
void getObject(UINT32 objectHandle, java.io.OutputStream dst) throws java.io.IOException, PtpException
objectHandle
- dst
- java.io.IOException
PtpException
void getThumb(UINT32 objectHandle, java.io.OutputStream dst) throws java.io.IOException, PtpException
objectHandle
- dst
- java.io.IOException
PtpException
void deleteObject(UINT32 objectHandle) throws java.io.IOException, PtpException
objectHandle
- java.io.IOException
PtpException
void initiateCapture() throws java.io.IOException, PtpException
java.io.IOException
PtpException
DevicePropDesc<?> getDevicePropDesc(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
java.io.IOException
PtpException
java.io.InputStream getDevicePropValue(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
java.io.IOException
PtpException
UINT8 getDevicePropValueAsUINT8(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
java.io.IOException
PtpException
UINT16 getDevicePropValueAsUINT16(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
java.io.IOException
PtpException
UINT32 getDevicePropValueAsUINT32(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
java.io.IOException
PtpException
UINT64 getDevicePropValueAsUINT64(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
java.io.IOException
PtpException
java.lang.String getDevicePropValueAsString(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
java.io.IOException
PtpException
void setDevicePropValue(Code<UINT16> devicePropCode, byte[] value) throws java.io.IOException, PtpException
java.io.IOException
PtpException
void setDevicePropValue(Code<UINT16> devicePropValue, byte value) throws java.io.IOException, PtpException
java.io.IOException
PtpException
void setDevicePropValue(Code<UINT16> devicePropValue, UINT16 value) throws java.io.IOException, PtpException
java.io.IOException
PtpException
void setDevicePropValue(Code<UINT16> devicePropValue, UINT32 value) throws java.io.IOException, PtpException
java.io.IOException
PtpException
void setDevicePropValue(Code<UINT16> devicePropValue, java.lang.String value) throws java.io.IOException, PtpException
java.io.IOException
PtpException
void terminateOpenCapture() throws java.io.IOException, PtpException
java.io.IOException
PtpException
void terminateOpenCapture(UINT32 transactionID) throws java.io.IOException, PtpException
transactionID
- java.io.IOException
PtpException
UINT32 initiateOpenCapture() throws java.io.IOException, PtpException
java.io.IOException
PtpException
terminateOpenCapture()
Response receiveResponse() throws java.io.IOException
java.io.IOException
void checkResponse() throws java.io.IOException, PtpException
java.io.IOException
PtpException
void sendData(byte[] data) throws java.io.IOException
java.io.IOException
java.io.InputStream receiveData() throws java.io.IOException, PtpException
java.io.IOException
PtpException
void receiveData(java.io.OutputStream dst) throws java.io.IOException, PtpException
java.io.IOException
PtpException
boolean addListener(PtpEventListener listener)
listener
- boolean removeListener(PtpEventListener listener)
listener
-