public abstract class AbstractPtpInitiator extends java.lang.Object implements PtpInitiator
| Constructor and Description | 
|---|
| AbstractPtpInitiator() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
| protected UINT32 | getSessionID() | 
| 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() | 
| 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) | 
| 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. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, receiveData, receiveResponse, removeListener, sendData, sendOperationprotected UINT32 getSessionID()
public UINT32 sendOperation(Code<UINT16> operationCode) throws java.io.IOException
sendOperation in interface PtpInitiatorjava.io.IOExceptionpublic UINT32 sendOperation(Code<UINT16> operationCode, UINT32 p1) throws java.io.IOException
sendOperation in interface PtpInitiatorjava.io.IOExceptionpublic UINT32 sendOperation(Code<UINT16> operationCode, UINT32 p1, UINT32 p2) throws java.io.IOException
sendOperation in interface PtpInitiatorjava.io.IOExceptionpublic UINT32 sendOperation(Code<UINT16> operationCode, UINT32 p1, UINT32 p2, UINT32 p3) throws java.io.IOException
sendOperation in interface PtpInitiatorjava.io.IOExceptionpublic UINT32 sendOperation(Code<UINT16> operationCode, UINT32 p1, UINT32 p2, UINT32 p3, UINT32 p4) throws java.io.IOException
sendOperation in interface PtpInitiatorjava.io.IOExceptionpublic DeviceInfo getDeviceInfo() throws java.io.IOException, PtpException
PtpInitiatorgetDeviceInfo in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic void openSession(UINT32 sessionID) throws java.io.IOException, PtpException
PtpInitiatoropenSession in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic void closeSession()
                  throws java.io.IOException,
                         PtpException
PtpInitiatorcloseSession in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic java.util.List<UINT32> getStorageIDs() throws java.io.IOException, PtpException
PtpInitiatorgetStorageIDs in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic StorageInfo getStorageInfo(UINT32 storageID) throws java.io.IOException, PtpException
PtpInitiatorgetStorageInfo in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic UINT32 getNumObjects() throws java.io.IOException, PtpException
PtpInitiatorgetNumObjects in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic java.util.List<UINT32> getObjectHandles() throws java.io.IOException, PtpException
PtpInitiatorgetObjectHandles in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic java.util.List<UINT32> getObjectHandles(UINT32 storageID) throws java.io.IOException, PtpException
PtpInitiatorgetObjectHandles in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic ObjectInfo getObjectInfo(UINT32 objectHandle) throws java.io.IOException, PtpException
PtpInitiatorgetObjectInfo in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic void getObject(UINT32 objectHandle, java.io.OutputStream dst) throws java.io.IOException, PtpException
PtpInitiatorgetObject in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic void getThumb(UINT32 objectHandle, java.io.OutputStream dst) throws java.io.IOException, PtpException
PtpInitiatorgetThumb in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic void deleteObject(UINT32 objectHandle) throws java.io.IOException, PtpException
PtpInitiatordeleteObject in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic void initiateCapture()
                     throws java.io.IOException,
                            PtpException
PtpInitiatorinitiateCapture in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic DevicePropDesc<?> getDevicePropDesc(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
PtpInitiatorgetDevicePropDesc in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic java.io.InputStream getDevicePropValue(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
getDevicePropValue in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic UINT8 getDevicePropValueAsUINT8(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
getDevicePropValueAsUINT8 in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic UINT16 getDevicePropValueAsUINT16(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
getDevicePropValueAsUINT16 in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic UINT32 getDevicePropValueAsUINT32(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
getDevicePropValueAsUINT32 in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic UINT64 getDevicePropValueAsUINT64(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
getDevicePropValueAsUINT64 in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic java.lang.String getDevicePropValueAsString(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
getDevicePropValueAsString in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic void setDevicePropValue(Code<UINT16> devicePropCode, byte[] value) throws java.io.IOException, PtpException
setDevicePropValue in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic void setDevicePropValue(Code<UINT16> devicePropValue, byte value) throws java.io.IOException, PtpException
setDevicePropValue in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic void setDevicePropValue(Code<UINT16> devicePropValue, UINT16 value) throws java.io.IOException, PtpException
setDevicePropValue in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic void setDevicePropValue(Code<UINT16> devicePropValue, UINT32 value) throws java.io.IOException, PtpException
setDevicePropValue in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic void setDevicePropValue(Code<UINT16> devicePropValue, java.lang.String value) throws java.io.IOException, PtpException
setDevicePropValue in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic void terminateOpenCapture()
                          throws java.io.IOException,
                                 PtpException
PtpInitiatorterminateOpenCapture in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic void terminateOpenCapture(UINT32 transactionID) throws java.io.IOException, PtpException
PtpInitiatorterminateOpenCapture in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic UINT32 initiateOpenCapture() throws java.io.IOException, PtpException
PtpInitiatorinitiateOpenCapture in interface PtpInitiatorjava.io.IOExceptionPtpExceptionPtpInitiator.terminateOpenCapture()public void checkResponse()
                   throws java.io.IOException,
                          PtpException
checkResponse in interface PtpInitiatorjava.io.IOExceptionPtpExceptionpublic java.io.InputStream receiveData()
                                throws java.io.IOException,
                                       PtpException
receiveData in interface PtpInitiatorjava.io.IOExceptionPtpException