usb.jphoto
Class Response

java.lang.Object
  |
  +--usb.jphoto.Buffer
        |
        +--usb.jphoto.Container
              |
              +--usb.jphoto.ParamVector
                    |
                    +--usb.jphoto.Response

public class Response
extends ParamVector

The final phase of a PTP transaction sends a command's response from the responder to the initiator. These include response codes, and are described in chapter 11 of the PTP specification.


Field Summary
static int AccessDenied
          ResponseCode:
static int CaptureAlreadyTerminated
          ResponseCode:
static int DeviceBusy
          ResponseCode:
static int DevicePropNotSupported
          ResponseCode:
static int GeneralError
          ResponseCode:
static int IncompleteTransfer
          ResponseCode:
static int InvalidCodeFormat
          ResponseCode:
static int InvalidDevicePropFormat
          ResponseCode:
static int InvalidDevicePropValue
          ResponseCode:
static int InvalidObjectFormatCode
          ResponseCode:
static int InvalidObjectHandle
          ResponseCode:
static int InvalidParameter
          ResponseCode:
static int InvalidParentObject
          ResponseCode:
static int InvalidStorageID
          ResponseCode:
static int InvalidTransactionID
          ResponseCode:
static int NoThumbnailPresent
          ResponseCode:
static int NoValidObjectInfo
          ResponseCode:
static int ObjectWriteProtected
          ResponseCode:
static int OK
          ResponseCode:
static int OperationNotSupported
          ResponseCode:
static int ParameterNotSupported
          ResponseCode:
static int PartialDeletion
          ResponseCode:
static int SelfTestFailed
          ResponseCode:
static int SessionAlreadyOpen
          ResponseCode:
static int SessionNotOpen
          ResponseCode:
static int SpecificationByFormatUnsupported
          ResponseCode:
static int SpecificationOfDestinationUnsupported
          ResponseCode:
static int StoreFull
          ResponseCode:
static int StoreNotAvailable
          ResponseCode:
static int StoreReadOnly
          ResponseCode:
static int TransactionCanceled
          ResponseCode:
static int Undefined
          ResponseCode:
static int UnknownVendorCode
          ResponseCode:
 
Method Summary
 java.lang.String getCodeName(int code)
          Subclasses override this to map PTP codes to their names; the results are always interned strings, so that they can be efficiently compared ("=", "!=") against constants.
 
Methods inherited from class usb.jphoto.ParamVector
getNumParams, getParam1, getParam2, getParam3
 
Methods inherited from class usb.jphoto.Container
getBlockType, getBlockTypeName, getCode, getCodeString, getCodeString, getCodeType, getLength, getXID, toString
 
Methods inherited from class usb.jphoto.Buffer
getS16, getS32, getS64, getS8, getString, getU16, getU8, nextS16, nextS16Array, nextS32, nextS32Array, nextS64, nextS64Array, nextS8, nextS8Array, nextString, nextU16, nextU16Array, nextU8, nextU8Array, put16, put32, put64, put8, putString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Undefined

public static final int Undefined
ResponseCode:

OK

public static final int OK
ResponseCode:

GeneralError

public static final int GeneralError
ResponseCode:

SessionNotOpen

public static final int SessionNotOpen
ResponseCode:

InvalidTransactionID

public static final int InvalidTransactionID
ResponseCode:

OperationNotSupported

public static final int OperationNotSupported
ResponseCode:

ParameterNotSupported

public static final int ParameterNotSupported
ResponseCode:

IncompleteTransfer

public static final int IncompleteTransfer
ResponseCode:

InvalidStorageID

public static final int InvalidStorageID
ResponseCode:

InvalidObjectHandle

public static final int InvalidObjectHandle
ResponseCode:

DevicePropNotSupported

public static final int DevicePropNotSupported
ResponseCode:

InvalidObjectFormatCode

public static final int InvalidObjectFormatCode
ResponseCode:

StoreFull

public static final int StoreFull
ResponseCode:

ObjectWriteProtected

public static final int ObjectWriteProtected
ResponseCode:

StoreReadOnly

public static final int StoreReadOnly
ResponseCode:

AccessDenied

public static final int AccessDenied
ResponseCode:

NoThumbnailPresent

public static final int NoThumbnailPresent
ResponseCode:

SelfTestFailed

public static final int SelfTestFailed
ResponseCode:

PartialDeletion

public static final int PartialDeletion
ResponseCode:

StoreNotAvailable

public static final int StoreNotAvailable
ResponseCode:

SpecificationByFormatUnsupported

public static final int SpecificationByFormatUnsupported
ResponseCode:

NoValidObjectInfo

public static final int NoValidObjectInfo
ResponseCode:

InvalidCodeFormat

public static final int InvalidCodeFormat
ResponseCode:

UnknownVendorCode

public static final int UnknownVendorCode
ResponseCode:

CaptureAlreadyTerminated

public static final int CaptureAlreadyTerminated
ResponseCode:

DeviceBusy

public static final int DeviceBusy
ResponseCode:

InvalidParentObject

public static final int InvalidParentObject
ResponseCode:

InvalidDevicePropFormat

public static final int InvalidDevicePropFormat
ResponseCode:

InvalidDevicePropValue

public static final int InvalidDevicePropValue
ResponseCode:

InvalidParameter

public static final int InvalidParameter
ResponseCode:

SessionAlreadyOpen

public static final int SessionAlreadyOpen
ResponseCode:

TransactionCanceled

public static final int TransactionCanceled
ResponseCode:

SpecificationOfDestinationUnsupported

public static final int SpecificationOfDestinationUnsupported
ResponseCode:
Method Detail

getCodeName

public java.lang.String getCodeName(int code)
Description copied from class: Container
Subclasses override this to map PTP codes to their names; the results are always interned strings, so that they can be efficiently compared ("=", "!=") against constants. Such per-instance methods permit type-specific subclasses (and vendor extensions) to name their code values, invoking superclass methods to name all other codes.
Overrides:
getCodeName in class Container


Associated source code is licenced under the GPL.
See http://jphoto.sourceforge.net
This documentation was derived from that source code on 2001-04-12.