usb.jphoto
Class DevicePropValue

java.lang.Object
  |
  +--usb.jphoto.Buffer
        |
        +--usb.jphoto.Container
              |
              +--usb.jphoto.Data
                    |
                    +--usb.jphoto.DevicePropValue

public class DevicePropValue
extends Data

DeviceProperty values wrap various types of integers and arrays of integers, and strings. It's sort of like a CORBA "Any", pairing a typecode and value, except that the typecode is known in advance so it's never marshaled.

See Also:
DevicePropDesc

Field Summary
static int s128
           
static int s128array
           
static int s16
           
static int s16array
           
static int s32
           
static int s32array
           
static int s64
           
static int s64array
           
static int s8
           
static int s8array
           
static int string
          Unicode string
static int u128
          Unsigned one hundred twenty eight bit integer
static int u128array
          Array of unsigned one hundred twenty eight bit integers
static int u16
          Unsigned sixteen bit integer
static int u16array
          Array of unsigned sixteen bit integers
static int u32
          Unsigned thirty two bit integer
static int u32array
          Array of unsigned thirty two bit integers
static int u64
          Unsigned sixty four bit integer
static int u64array
          Array of unsigned sixty four bit integers
static int u8
          Unsigned eight bit integer
static int u8array
          Array of unsigned eight bit integers
 
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.
 int getTypeCode()
           
static java.lang.String getTypeName(int code)
          Maps datatype codes to string names.
 java.lang.Object getValue()
           
 
Methods inherited from class usb.jphoto.Data
toString
 
Methods inherited from class usb.jphoto.Container
getBlockType, getBlockTypeName, getCode, getCodeString, getCodeString, getCodeType, getLength, getXID
 
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

s8

public static final int s8

u8

public static final int u8
Unsigned eight bit integer

s16

public static final int s16

u16

public static final int u16
Unsigned sixteen bit integer

s32

public static final int s32

u32

public static final int u32
Unsigned thirty two bit integer

s64

public static final int s64

u64

public static final int u64
Unsigned sixty four bit integer

s128

public static final int s128

u128

public static final int u128
Unsigned one hundred twenty eight bit integer

s8array

public static final int s8array

u8array

public static final int u8array
Array of unsigned eight bit integers

s16array

public static final int s16array

u16array

public static final int u16array
Array of unsigned sixteen bit integers

s32array

public static final int s32array

u32array

public static final int u32array
Array of unsigned thirty two bit integers

s64array

public static final int s64array

u64array

public static final int u64array
Array of unsigned sixty four bit integers

s128array

public static final int s128array

u128array

public static final int u128array
Array of unsigned one hundred twenty eight bit integers

string

public static final int string
Unicode string
Method Detail

getValue

public java.lang.Object getValue()

getTypeCode

public int getTypeCode()

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 Data

getTypeName

public static java.lang.String getTypeName(int code)
Maps datatype codes to string names.
Parameters:
code - datatype code
Returns:
interned string identifying that datatype.


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.