public final class PtpIpInitiator extends AbstractPtpInitiator
Constructor and Description |
---|
PtpIpInitiator(java.util.UUID guid,
java.lang.String host,
int port) |
Modifier and Type | Method and Description |
---|---|
boolean |
addListener(PtpEventListener listener)
Add the listener for PTP event.
|
void |
close() |
java.util.UUID |
getGUID()
Get the GUID.
|
java.lang.String |
getHost()
Get the host of responder which the initiator is connecting.
|
int |
getPort()
Get the TCP port of responder which the initiator is connecting.
|
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 p1,
UINT32 p2,
UINT32 p3,
UINT32 p4,
UINT32 p5) |
checkResponse, closeSession, deleteObject, getDeviceInfo, getDevicePropDesc, getDevicePropValue, getDevicePropValueAsString, getDevicePropValueAsUINT16, getDevicePropValueAsUINT32, getDevicePropValueAsUINT64, getDevicePropValueAsUINT8, getNumObjects, getObject, getObjectHandles, getObjectHandles, getObjectInfo, getSessionID, getStorageIDs, getStorageInfo, getThumb, initiateCapture, initiateOpenCapture, openSession, receiveData, sendOperation, sendOperation, sendOperation, sendOperation, sendOperation, setDevicePropValue, setDevicePropValue, setDevicePropValue, setDevicePropValue, setDevicePropValue, terminateOpenCapture, terminateOpenCapture
public PtpIpInitiator(java.util.UUID guid, java.lang.String host, int port) throws java.io.IOException
java.io.IOException
public java.util.UUID getGUID()
public java.lang.String getHost()
public int getPort()
public UINT32 sendOperation(Code<UINT16> operationCode, UINT32 p1, UINT32 p2, UINT32 p3, UINT32 p4, UINT32 p5) throws java.io.IOException
java.io.IOException
public Response receiveResponse() throws java.io.IOException
java.io.IOException
public void sendData(byte[] data) throws java.io.IOException
java.io.IOException
public void receiveData(java.io.OutputStream dst) throws java.io.IOException, PtpException
java.io.IOException
PtpException
public final boolean addListener(PtpEventListener listener)
PtpInitiator
public final boolean removeListener(PtpEventListener listener)
PtpInitiator
public void close() throws java.io.IOException
java.io.IOException