mediautil.image.jpeg
Class CIFF

java.lang.Object
  extended by mediautil.gen.BasicIo
      extended by mediautil.image.jpeg.BasicJpegIo
          extended by mediautil.image.jpeg.AbstractImageInfo<LLJTran>
              extended by mediautil.image.jpeg.CIFF
All Implemented Interfaces:
Serializable, MediaInfo

public class CIFF
extends AbstractImageInfo<LLJTran>

See Also:
Serialized Form

Field Summary
static int K_DATATYPEMASK
           
static int K_DT_ASCII
           
static int K_DT_BYTE
           
static int K_DT_BYTE2
           
static int K_DT_DWORD
           
static int K_DT_HEAPTYPEPROPERTY1
           
static int K_DT_HEAPTYPEPROPERTY2
           
static int K_DT_WORD
           
static int K_IDCODEMASK
           
static int K_TC_BODYID
           
static int K_TC_BODYSENSITIVITY
           
static int K_TC_CAMERAOBJECT
           
static int K_TC_CAMERASPECIFICATION
           
static int K_TC_CAPTURETIME
           
static int K_TC_COMPONENTVESRION
           
static int K_TC_DESCRIPTION
           
static int K_TC_EXUSED
           
static int K_TC_FIRMWAREVERSION
           
static int K_TC_FREE
           
static int K_TC_IMAGEFILENAME
           
static int K_TC_IMAGEFORMAT
           
static int K_TC_IMAGESPEC
           
static int K_TC_MEASUREDINFO
           
static int K_TC_MI_EV
           
static int K_TC_MODELNAME
           
static int K_TC_NULL
           
static int K_TC_OWNERNAME
           
static int K_TC_RECORDID
           
static int K_TC_RELEASESETTING
           
static int K_TC_ROMOPERATIONMODE
           
static int K_TC_SELFTIMERTIME
           
static int K_TC_SERIALNUMBER
           
static int K_TC_SHOOTINGRECORD
           
static int K_TC_SR_EF
           
static int K_TC_SR_EXPOSURE
           
static int K_TC_SR_RELEASEMETHOD
           
static int K_TC_SR_RELEASETIMING
           
static int K_TC_SR_TARGETDISTANCESETTING
           
static int K_TC_TARGETIMAGETYPE
           
static int K_TC_THUMBNAILFILENAME
           
static int K_TC_WILDCARD
           
static int K_TYPEIDCODEMASK
           
static int KSTG_FORMATMASK
           
static int KSTG_INHEAPSPACE
           
static int KSTG_INRECORDENTRY
           
 
Fields inherited from class mediautil.image.jpeg.AbstractImageInfo
AV_TO_FSTOP, BMP_SIG, BMP24_HDR_SIZE, dateformat, DEFAULT_THUMB_SIZE, fnumberformat, NA, TV_TO_SEC
 
Fields inherited from class mediautil.image.jpeg.BasicJpegIo
M_DHP, M_DHT, M_DNL, M_DQT, M_DRI, M_EXP
 
Fields inherited from class mediautil.gen.BasicIo
FACTOR_ABVS
 
Fields inherited from interface mediautil.gen.MediaInfo
ALBUM, APERTURE, ARTIST, ARTISTWEBPAGE, AUDIOFILEWEBPAGE, AUDIOSOURCEWEBPAGE, BAND, BITRATE, BPM, CDIDENTIFIER, CLASS_AUDIO, CLASS_IMAGE, CLASS_VIDEO, COMMENTS, COMMERCIAL, COMMERCIALINFORMATION, COMPILATION, COMPOSER, CONDUCTOR, CONTENTGROUP, COPYRIGHT, COPYRIGHTTEXT, COPYRIGHTWEBPAGE, DATE, DATETIMEORIGINAL, DATETIMEORIGINALSTRING, EMPHASIS, ENCAPSULATEDOBJECT, ENCODEDBY, ENCRYPTIONMETHODREGISTRATION, EQUALISATION, ESS_CHARACHTER, ESS_MAKE, ESS_QUALITY, ESS_TIMESTAMP, EVENTTIMINGCODES, EXPOPROGRAM, FILEOWNER, FILESIZE, FILETYPE, FLASH, FNUMBER, FOCALLENGTH, GENRE, GROUPIDENTIFICATIONREGISTRATION, INITIALKEY, INTERNETRADIOSTATIONNAME, INTERNETRADIOSTATIONOWNER, INTERNETRADIOSTATIONWEBPAGE, ISRC, LANGUAGE, LASTMODIFIED, LASTPLAY, LAYER, LENGTH, LENGTHINTAG, LOOKUPTABLE, LYRICIST, MAKE, MEDIA_ATTRIBUTES, MEDIATYPE, METERING, MODE, MODEL, MPEGLEVEL, OFTRACKS, ORIENTATION, ORIGINAL, ORIGINALARTIST, ORIGINALFILENAME, ORIGINALLYRICIST, ORIGINALTITLE, ORIGINALYEAR, OWNERSHIP, PARTOFSET, PAYMENTWEBPAGE, PICTURE, PICTURE_ATTRIBUTES, PLAY_ATTRIBUTES, PLAYCOUNTER, PLAYLISTDELAY, POPULARIMETER, PRIVATE, PRIVATEDATA, PROTECTION, PUBLISHER, PUBLISHERSWEBPAGE, QUALITY, RATING, RECORDINGDATES, RELATIVEVOLUMENADJUSTMENT, REMIXER, RESOLUTIONX, RESOLUTIONY, REVERB, SAMPLERATE, SHUTTER, SUBTITLE, TERMSOFUSE, THUMBNAIL, TIME, TITLE, TRACK, UNIQUEFILEIDENTIFIER, USERDEFINEDTEXT, VBR, YEAR
 
Constructor Summary
CIFF(InputStream is, byte[] data, int offset, String name, String comments, LLJTran format)
           
 
Method Summary
 String getDataTimeOriginalString()
           
 int getExpoProgram()
           
 float getFNumber()
           
 float getFocalLength()
           
 String getFormat()
           
 String getMake()
           
 int getMetering()
           
 String getModel()
           
 Hashtable getProperties()
           
 String getQuality()
           
 String getReport()
           
 int getResolutionX()
           
 int getResolutionY()
           
 Rational getShutter()
           
 Icon getThumbnailIcon(Dimension size)
           
 boolean isFlash()
           
 void readInfo()
          Reads the imageInfo from the Input supplied in Constructor.
 boolean saveThumbnailImage(OutputStream os)
          saves thumbnail image to specified path
 
Methods inherited from class mediautil.image.jpeg.AbstractImageInfo
apertureToFnumber, getAdvancedImage, getAttribute, getBoolAttribute, getComments, getDateTimeOriginal, getDoubleAttribute, getFiveMajorAttributes, getFloatAttribute, getImageFile, getIntAttribute, getLongAttribute, getName, getThumbnailExtension, getThumbnailIcon, getThumbnailLength, getThumbnailOffset, removeThumbnailTags, setAdvancedImage, setAttribute, setName, setThumbnail, toString, writeInfo, writeInfo, writeInfo
 
Methods inherited from class mediautil.gen.BasicIo
asInt, asString, bn2s, bn2s, convertLength, in2s, isSignature, read, read, s2n, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KSTG_FORMATMASK

public static final int KSTG_FORMATMASK
See Also:
Constant Field Values

K_DATATYPEMASK

public static final int K_DATATYPEMASK
See Also:
Constant Field Values

K_IDCODEMASK

public static final int K_IDCODEMASK
See Also:
Constant Field Values

K_TYPEIDCODEMASK

public static final int K_TYPEIDCODEMASK
See Also:
Constant Field Values

KSTG_INHEAPSPACE

public static final int KSTG_INHEAPSPACE
See Also:
Constant Field Values

KSTG_INRECORDENTRY

public static final int KSTG_INRECORDENTRY
See Also:
Constant Field Values

K_DT_BYTE

public static final int K_DT_BYTE
See Also:
Constant Field Values

K_DT_ASCII

public static final int K_DT_ASCII
See Also:
Constant Field Values

K_DT_WORD

public static final int K_DT_WORD
See Also:
Constant Field Values

K_DT_DWORD

public static final int K_DT_DWORD
See Also:
Constant Field Values

K_DT_BYTE2

public static final int K_DT_BYTE2
See Also:
Constant Field Values

K_DT_HEAPTYPEPROPERTY1

public static final int K_DT_HEAPTYPEPROPERTY1
See Also:
Constant Field Values

K_DT_HEAPTYPEPROPERTY2

public static final int K_DT_HEAPTYPEPROPERTY2
See Also:
Constant Field Values

K_TC_WILDCARD

public static final int K_TC_WILDCARD
See Also:
Constant Field Values

K_TC_NULL

public static final int K_TC_NULL
See Also:
Constant Field Values

K_TC_FREE

public static final int K_TC_FREE
See Also:
Constant Field Values

K_TC_EXUSED

public static final int K_TC_EXUSED
See Also:
Constant Field Values

K_TC_DESCRIPTION

public static final int K_TC_DESCRIPTION
See Also:
Constant Field Values

K_TC_MODELNAME

public static final int K_TC_MODELNAME
See Also:
Constant Field Values

K_TC_FIRMWAREVERSION

public static final int K_TC_FIRMWAREVERSION
See Also:
Constant Field Values

K_TC_COMPONENTVESRION

public static final int K_TC_COMPONENTVESRION
See Also:
Constant Field Values

K_TC_ROMOPERATIONMODE

public static final int K_TC_ROMOPERATIONMODE
See Also:
Constant Field Values

K_TC_OWNERNAME

public static final int K_TC_OWNERNAME
See Also:
Constant Field Values

K_TC_IMAGEFILENAME

public static final int K_TC_IMAGEFILENAME
See Also:
Constant Field Values

K_TC_THUMBNAILFILENAME

public static final int K_TC_THUMBNAILFILENAME
See Also:
Constant Field Values

K_TC_TARGETIMAGETYPE

public static final int K_TC_TARGETIMAGETYPE
See Also:
Constant Field Values

K_TC_SR_RELEASEMETHOD

public static final int K_TC_SR_RELEASEMETHOD
See Also:
Constant Field Values

K_TC_SR_RELEASETIMING

public static final int K_TC_SR_RELEASETIMING
See Also:
Constant Field Values

K_TC_RELEASESETTING

public static final int K_TC_RELEASESETTING
See Also:
Constant Field Values

K_TC_BODYSENSITIVITY

public static final int K_TC_BODYSENSITIVITY
See Also:
Constant Field Values

K_TC_IMAGEFORMAT

public static final int K_TC_IMAGEFORMAT
See Also:
Constant Field Values

K_TC_RECORDID

public static final int K_TC_RECORDID
See Also:
Constant Field Values

K_TC_SELFTIMERTIME

public static final int K_TC_SELFTIMERTIME
See Also:
Constant Field Values

K_TC_SR_TARGETDISTANCESETTING

public static final int K_TC_SR_TARGETDISTANCESETTING
See Also:
Constant Field Values

K_TC_BODYID

public static final int K_TC_BODYID
See Also:
Constant Field Values

K_TC_CAPTURETIME

public static final int K_TC_CAPTURETIME
See Also:
Constant Field Values

K_TC_IMAGESPEC

public static final int K_TC_IMAGESPEC
See Also:
Constant Field Values

K_TC_SR_EF

public static final int K_TC_SR_EF
See Also:
Constant Field Values

K_TC_MI_EV

public static final int K_TC_MI_EV
See Also:
Constant Field Values

K_TC_SERIALNUMBER

public static final int K_TC_SERIALNUMBER
See Also:
Constant Field Values

K_TC_SR_EXPOSURE

public static final int K_TC_SR_EXPOSURE
See Also:
Constant Field Values

K_TC_CAMERAOBJECT

public static final int K_TC_CAMERAOBJECT
See Also:
Constant Field Values

K_TC_SHOOTINGRECORD

public static final int K_TC_SHOOTINGRECORD
See Also:
Constant Field Values

K_TC_MEASUREDINFO

public static final int K_TC_MEASUREDINFO
See Also:
Constant Field Values

K_TC_CAMERASPECIFICATION

public static final int K_TC_CAMERASPECIFICATION
See Also:
Constant Field Values
Constructor Detail

CIFF

public CIFF(InputStream is,
            byte[] data,
            int offset,
            String name,
            String comments,
            LLJTran format)
     throws FileFormatException
Throws:
FileFormatException
Method Detail

getFormat

public String getFormat()
Specified by:
getFormat in class AbstractImageInfo<LLJTran>

readInfo

public void readInfo()
Description copied from class: AbstractImageInfo
Reads the imageInfo from the Input supplied in Constructor. This is for derived class to implement.

Specified by:
readInfo in class AbstractImageInfo<LLJTran>

getResolutionX

public int getResolutionX()
Specified by:
getResolutionX in class AbstractImageInfo<LLJTran>

getResolutionY

public int getResolutionY()
Specified by:
getResolutionY in class AbstractImageInfo<LLJTran>

getMetering

public int getMetering()
Specified by:
getMetering in class AbstractImageInfo<LLJTran>

getExpoProgram

public int getExpoProgram()
Specified by:
getExpoProgram in class AbstractImageInfo<LLJTran>

getMake

public String getMake()
Specified by:
getMake in class AbstractImageInfo<LLJTran>

getModel

public String getModel()
Specified by:
getModel in class AbstractImageInfo<LLJTran>

getDataTimeOriginalString

public String getDataTimeOriginalString()
Specified by:
getDataTimeOriginalString in class AbstractImageInfo<LLJTran>

getFNumber

public float getFNumber()
Specified by:
getFNumber in class AbstractImageInfo<LLJTran>

getShutter

public Rational getShutter()
Specified by:
getShutter in class AbstractImageInfo<LLJTran>

isFlash

public boolean isFlash()
Specified by:
isFlash in class AbstractImageInfo<LLJTran>

getFocalLength

public float getFocalLength()
Specified by:
getFocalLength in class AbstractImageInfo<LLJTran>

getQuality

public String getQuality()
Specified by:
getQuality in class AbstractImageInfo<LLJTran>

getReport

public String getReport()
Specified by:
getReport in class AbstractImageInfo<LLJTran>

saveThumbnailImage

public boolean saveThumbnailImage(OutputStream os)
                           throws IOException
Description copied from class: AbstractImageInfo
saves thumbnail image to specified path

Overrides:
saveThumbnailImage in class AbstractImageInfo<LLJTran>
Throws:
IOException

getThumbnailIcon

public Icon getThumbnailIcon(Dimension size)
Specified by:
getThumbnailIcon in class AbstractImageInfo<LLJTran>

getProperties

public Hashtable getProperties()