public final class MtpDevice extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
deleteObject(int objectHandle) |
protected void |
finalize() |
int |
getDeviceId() |
MtpDeviceInfo |
getDeviceInfo() |
String |
getDeviceName() |
byte[] |
getObject(int objectHandle,
int objectSize) |
int[] |
getObjectHandles(int storageId,
int format,
int objectHandle) |
MtpObjectInfo |
getObjectInfo(int objectHandle) |
long |
getParent(int objectHandle) |
long |
getStorageId(int objectHandle) |
int[] |
getStorageIds() |
MtpStorageInfo |
getStorageInfo(int storageId) |
byte[] |
getThumbnail(int objectHandle) |
boolean |
importFile(int objectHandle,
String destPath) |
boolean |
open(UsbDeviceConnection connection) |
String |
toString() |
public MtpDevice(UsbDevice device)
public boolean open(UsbDeviceConnection connection)
public void close()
protected void finalize()
throws Throwable
public String getDeviceName()
public int getDeviceId()
public MtpDeviceInfo getDeviceInfo()
public int[] getStorageIds()
public int[] getObjectHandles(int storageId,
int format,
int objectHandle)
public byte[] getObject(int objectHandle,
int objectSize)
public byte[] getThumbnail(int objectHandle)
public MtpStorageInfo getStorageInfo(int storageId)
public MtpObjectInfo getObjectInfo(int objectHandle)
public boolean deleteObject(int objectHandle)
public long getParent(int objectHandle)
public long getStorageId(int objectHandle)
public boolean importFile(int objectHandle,
String destPath)
Copyright © 2008-2013. All Rights Reserved.