|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--usb.jphoto.Buffer | +--usb.jphoto.Container | +--usb.jphoto.Data | +--usb.jphoto.ObjectInfo
ObjectInfo provides metadata such as image and thumbnail sizes for image objects; it describes associations; and identifies additional object types such as audio clips.
Note that in addition to the image formats identified here, devices could also support proprietary formats except for use with thumbnail images.
Field Summary | |
static int |
AIFF
ObjectFormatCode: |
static int |
ASF
ObjectFormatCode: |
static int |
Association
ObjectFormatCode: associations include folders and panoramas |
static int |
AVI
ObjectFormatCode: |
static int |
BMP
ImageFormatCode: MS-Windows bitmap image format |
static int |
CIFF
ImageFormatCode: Canon camera image file format |
static int |
DPOF
ObjectFormatCode: |
static int |
Executable
ObjectFormatCode: |
static int |
EXIF_JPEG
ImageFormatCode: EXIF/JPEG version 2.1, the preferred format for thumbnails and for images. |
static int |
FlashPix
ImageFormatCode: FlashPix image format |
static int |
GIF
ImageFormatCode: Graphics Interchange Format (deprecated) |
static int |
HTML
ObjectFormatCode: |
static int |
JFIF
ImageFormatCode: JPEG File Interchange Format |
static int |
JP2
ImageFormatCode: JPEG 2000 baseline |
static int |
JPX
ImageFormatCode: JPEG 2000 extended |
static int |
MP3
ObjectFormatCode: |
static int |
MPEG
ObjectFormatCode: |
static int |
PCD
ImageFormatCode: PhotoCD Image Pac |
static int |
PICT
ImageFormatCode: Quickdraw image format |
static int |
PNG
ImageFormatCode: Portable Network Graphics |
static int |
QuickTime
ObjectFormatCode: QuickTime video |
static int |
Script
ObjectFormatCode: |
static int |
Text
ObjectFormatCode: |
static int |
TIFF
ImageFormatCode: Tag Image File Format |
static int |
TIFF_EP
ImageFormatCode: Uncompressed TIFF/EP, the alternate format for thumbnails. |
static int |
TIFF_IT
ImageFormatCode: TIFF for Information Technology (graphic arts) |
static int |
Undefined
ObjectFormatCode: unrecognized non-image format |
static int |
UnknownImage
ImageFormatCode: unknown image format |
static int |
WAV
ObjectFormatCode: |
Constructor Summary | |
ObjectInfo(java.net.URLConnection conn,
DeviceInfo devInfo,
NameFactory f)
Construct an ObjectInfo data packet using the object at the other end of the specified connection. |
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 |
getLength()
Returns the overall length of this data block, including header. |
boolean |
isImage()
Returns true for format codes that have the image type bit set. |
boolean |
isVideo()
Returns true for some recognized video format codes. |
Methods inherited from class usb.jphoto.Data |
toString |
Methods inherited from class usb.jphoto.Container |
getBlockType, getBlockTypeName, getCode, getCodeString, getCodeString, getCodeType, 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 |
public static final int Undefined
public static final int Association
public static final int Script
public static final int Executable
public static final int Text
public static final int HTML
public static final int DPOF
public static final int AIFF
public static final int WAV
public static final int MP3
public static final int AVI
public static final int MPEG
public static final int ASF
public static final int QuickTime
public static final int UnknownImage
public static final int EXIF_JPEG
public static final int TIFF_EP
public static final int FlashPix
public static final int BMP
public static final int CIFF
public static final int GIF
public static final int JFIF
public static final int PCD
public static final int PICT
public static final int PNG
public static final int TIFF
public static final int TIFF_IT
public static final int JP2
public static final int JPX
Constructor Detail |
public ObjectInfo(java.net.URLConnection conn, DeviceInfo devInfo, NameFactory f)
java.lang.IllegalArgumentException
- if the object uses an image
format the device doesn't support, or if the object's content
type is not recognized.BaselineInitiator.sendObjectInfo(usb.jphoto.ObjectInfo, int, int)
Method Detail |
public int getLength()
Container
getLength
in class Container
public boolean isImage()
public boolean isVideo()
public java.lang.String getCodeName(int code)
Container
getCodeName
in class Data
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |