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, wait
addListener, receiveData, receiveResponse, removeListener, sendData, sendOperation
protected UINT32 getSessionID()
public UINT32 sendOperation(Code<UINT16> operationCode) throws java.io.IOException
sendOperation
in interface PtpInitiator
java.io.IOException
public UINT32 sendOperation(Code<UINT16> operationCode, UINT32 p1) throws java.io.IOException
sendOperation
in interface PtpInitiator
java.io.IOException
public UINT32 sendOperation(Code<UINT16> operationCode, UINT32 p1, UINT32 p2) throws java.io.IOException
sendOperation
in interface PtpInitiator
java.io.IOException
public UINT32 sendOperation(Code<UINT16> operationCode, UINT32 p1, UINT32 p2, UINT32 p3) throws java.io.IOException
sendOperation
in interface PtpInitiator
java.io.IOException
public UINT32 sendOperation(Code<UINT16> operationCode, UINT32 p1, UINT32 p2, UINT32 p3, UINT32 p4) throws java.io.IOException
sendOperation
in interface PtpInitiator
java.io.IOException
public DeviceInfo getDeviceInfo() throws java.io.IOException, PtpException
PtpInitiator
getDeviceInfo
in interface PtpInitiator
java.io.IOException
PtpException
public void openSession(UINT32 sessionID) throws java.io.IOException, PtpException
PtpInitiator
openSession
in interface PtpInitiator
java.io.IOException
PtpException
public void closeSession() throws java.io.IOException, PtpException
PtpInitiator
closeSession
in interface PtpInitiator
java.io.IOException
PtpException
public java.util.List<UINT32> getStorageIDs() throws java.io.IOException, PtpException
PtpInitiator
getStorageIDs
in interface PtpInitiator
java.io.IOException
PtpException
public StorageInfo getStorageInfo(UINT32 storageID) throws java.io.IOException, PtpException
PtpInitiator
getStorageInfo
in interface PtpInitiator
java.io.IOException
PtpException
public UINT32 getNumObjects() throws java.io.IOException, PtpException
PtpInitiator
getNumObjects
in interface PtpInitiator
java.io.IOException
PtpException
public java.util.List<UINT32> getObjectHandles() throws java.io.IOException, PtpException
PtpInitiator
getObjectHandles
in interface PtpInitiator
java.io.IOException
PtpException
public java.util.List<UINT32> getObjectHandles(UINT32 storageID) throws java.io.IOException, PtpException
PtpInitiator
getObjectHandles
in interface PtpInitiator
java.io.IOException
PtpException
public ObjectInfo getObjectInfo(UINT32 objectHandle) throws java.io.IOException, PtpException
PtpInitiator
getObjectInfo
in interface PtpInitiator
java.io.IOException
PtpException
public void getObject(UINT32 objectHandle, java.io.OutputStream dst) throws java.io.IOException, PtpException
PtpInitiator
getObject
in interface PtpInitiator
java.io.IOException
PtpException
public void getThumb(UINT32 objectHandle, java.io.OutputStream dst) throws java.io.IOException, PtpException
PtpInitiator
getThumb
in interface PtpInitiator
java.io.IOException
PtpException
public void deleteObject(UINT32 objectHandle) throws java.io.IOException, PtpException
PtpInitiator
deleteObject
in interface PtpInitiator
java.io.IOException
PtpException
public void initiateCapture() throws java.io.IOException, PtpException
PtpInitiator
initiateCapture
in interface PtpInitiator
java.io.IOException
PtpException
public DevicePropDesc<?> getDevicePropDesc(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
PtpInitiator
getDevicePropDesc
in interface PtpInitiator
java.io.IOException
PtpException
public java.io.InputStream getDevicePropValue(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
getDevicePropValue
in interface PtpInitiator
java.io.IOException
PtpException
public UINT8 getDevicePropValueAsUINT8(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
getDevicePropValueAsUINT8
in interface PtpInitiator
java.io.IOException
PtpException
public UINT16 getDevicePropValueAsUINT16(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
getDevicePropValueAsUINT16
in interface PtpInitiator
java.io.IOException
PtpException
public UINT32 getDevicePropValueAsUINT32(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
getDevicePropValueAsUINT32
in interface PtpInitiator
java.io.IOException
PtpException
public UINT64 getDevicePropValueAsUINT64(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
getDevicePropValueAsUINT64
in interface PtpInitiator
java.io.IOException
PtpException
public java.lang.String getDevicePropValueAsString(Code<UINT16> devicePropCode) throws java.io.IOException, PtpException
getDevicePropValueAsString
in interface PtpInitiator
java.io.IOException
PtpException
public void setDevicePropValue(Code<UINT16> devicePropCode, byte[] value) throws java.io.IOException, PtpException
setDevicePropValue
in interface PtpInitiator
java.io.IOException
PtpException
public void setDevicePropValue(Code<UINT16> devicePropValue, byte value) throws java.io.IOException, PtpException
setDevicePropValue
in interface PtpInitiator
java.io.IOException
PtpException
public void setDevicePropValue(Code<UINT16> devicePropValue, UINT16 value) throws java.io.IOException, PtpException
setDevicePropValue
in interface PtpInitiator
java.io.IOException
PtpException
public void setDevicePropValue(Code<UINT16> devicePropValue, UINT32 value) throws java.io.IOException, PtpException
setDevicePropValue
in interface PtpInitiator
java.io.IOException
PtpException
public void setDevicePropValue(Code<UINT16> devicePropValue, java.lang.String value) throws java.io.IOException, PtpException
setDevicePropValue
in interface PtpInitiator
java.io.IOException
PtpException
public void terminateOpenCapture() throws java.io.IOException, PtpException
PtpInitiator
terminateOpenCapture
in interface PtpInitiator
java.io.IOException
PtpException
public void terminateOpenCapture(UINT32 transactionID) throws java.io.IOException, PtpException
PtpInitiator
terminateOpenCapture
in interface PtpInitiator
java.io.IOException
PtpException
public UINT32 initiateOpenCapture() throws java.io.IOException, PtpException
PtpInitiator
initiateOpenCapture
in interface PtpInitiator
java.io.IOException
PtpException
PtpInitiator.terminateOpenCapture()
public void checkResponse() throws java.io.IOException, PtpException
checkResponse
in interface PtpInitiator
java.io.IOException
PtpException
public java.io.InputStream receiveData() throws java.io.IOException, PtpException
receiveData
in interface PtpInitiator
java.io.IOException
PtpException