public class ObjectInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ObjectInfo.ProtectionStatus
ProtectionStatus in ObjectInfo defined in PTP standard.
|
Constructor and Description |
---|
ObjectInfo(UINT32 storageID,
UINT16 objectFormat,
ObjectInfo.ProtectionStatus protectionStatus,
UINT32 objectCompressedSize,
UINT16 thumbFormat,
UINT32 thumbCompressedSize,
UINT32 thumbPixWidth,
UINT32 thumbPixHeight,
UINT32 imagePixWidth,
UINT32 imagePixHeight,
UINT32 imageBitDepth,
UINT32 parentObject,
UINT16 associationType,
UINT32 associationDesc,
UINT32 sequenceNumber,
java.lang.String fileName,
java.lang.String captureDate,
java.lang.String modificationDate,
java.lang.String keywords)
Constructs new object information object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
UINT32 |
getAssociationDesc()
Returns the association description of the object.
|
UINT16 |
getAssociationType()
Returns the association type of the object.
|
java.lang.String |
getCaptureDate()
Returns the capture date of the object.
|
java.lang.String |
getFileName()
Returns the file name of the object.
|
UINT32 |
getImageBitDepth()
Returns the image bit depth of the object.
|
UINT32 |
getImagePixHeight()
Returns the image pixel height of the object.
|
UINT32 |
getImagePixWidth()
Returns the image pixel width of the object.
|
java.lang.String |
getKeywords()
Returns keywords of the object.
|
java.lang.String |
getModificationDate()
Returns the modification date of the object.
|
UINT32 |
getObjectCompressedSize()
Returns the compressed size of the object.
|
UINT16 |
getObjectFormat()
Returns the format of the object.
|
UINT32 |
getParentObject()
Returns the parent ID the object stored.
|
ObjectInfo.ProtectionStatus |
getProtectionStatus()
Returns the protection status of the object.
|
UINT32 |
getSequenceNumber()
Returns the sequence number of the object.
|
UINT32 |
getStorageID()
Returns the storage ID the object stored.
|
UINT32 |
getThumbCompressedSize()
Returns the compressed size of the thumbnail of the object.
|
UINT16 |
getThumbFormat()
Returns the thumbnail format of the object.
|
UINT32 |
getThumbPixHeight()
Returns the pixel height of the thumbnail of the object.
|
UINT32 |
getThumbPixWidth()
Returns the pixel width of the thumbnail of the object.
|
int |
hashCode() |
static ObjectInfo |
read(java.io.InputStream is)
Constructs new object information object from InputStream.
|
static ObjectInfo |
read(org.theta4j.ptp.io.PtpInputStream pis)
Constructs new object information object from PtpInputStream.
|
java.lang.String |
toString() |
public ObjectInfo(UINT32 storageID, UINT16 objectFormat, ObjectInfo.ProtectionStatus protectionStatus, UINT32 objectCompressedSize, UINT16 thumbFormat, UINT32 thumbCompressedSize, UINT32 thumbPixWidth, UINT32 thumbPixHeight, UINT32 imagePixWidth, UINT32 imagePixHeight, UINT32 imageBitDepth, UINT32 parentObject, UINT16 associationType, UINT32 associationDesc, UINT32 sequenceNumber, java.lang.String fileName, java.lang.String captureDate, java.lang.String modificationDate, java.lang.String keywords)
storageID
- The storage ID the object stored.objectFormat
- The format of the object.protectionStatus
- The protection status of the object.objectCompressedSize
- The compressed size of the object.thumbFormat
- The thumbnail format of the object.thumbCompressedSize
- The compressed size of the thumbnail of the object.thumbPixWidth
- The pixel width of the thumbnail of the object.thumbPixHeight
- The pixel height of the thumbnail of the object.imagePixWidth
- The image pixel width of the object.imagePixHeight
- The image pixel height of the object.imageBitDepth
- The image bit depth of the object.parentObject
- The parent ID the object stored.associationType
- The association type of the object.associationDesc
- The association description of the object.sequenceNumber
- The sequence number of the object.fileName
- The file name of the object.captureDate
- The capture date of the object. The format is described in PTP standard.modificationDate
- The modification date of the object. The format is described in PTP standard.keywords
- Keywords of the object.java.lang.NullPointerException
- if an argument is null.public static ObjectInfo read(java.io.InputStream is) throws java.io.IOException
java.io.IOException
- if an I/O error occurs while reading the stream.java.lang.NullPointerException
- if an argument is null.public static ObjectInfo read(org.theta4j.ptp.io.PtpInputStream pis) throws java.io.IOException
java.io.IOException
- if an I/O error occurs while reading the stream.java.lang.NullPointerException
- if an argument is null.public UINT32 getStorageID()
public UINT16 getObjectFormat()
public ObjectInfo.ProtectionStatus getProtectionStatus()
public UINT32 getObjectCompressedSize()
public UINT16 getThumbFormat()
public UINT32 getThumbCompressedSize()
public UINT32 getThumbPixWidth()
public UINT32 getThumbPixHeight()
public UINT32 getImagePixWidth()
public UINT32 getImagePixHeight()
public UINT32 getImageBitDepth()
public UINT32 getParentObject()
public UINT16 getAssociationType()
public UINT32 getAssociationDesc()
public UINT32 getSequenceNumber()
public java.lang.String getFileName()
public java.lang.String getCaptureDate()
public java.lang.String getModificationDate()
public java.lang.String getKeywords()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object