Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.flexdbserver.services.asset.iptc
Class TiffFile  view TiffFile download TiffFile.java

java.lang.Object
  extended bycom.flexstor.flexdbserver.services.asset.iptc.TiffFile

public class TiffFile
extends java.lang.Object


Field Summary
protected  boolean bDebug
           
protected  boolean bIntelFormat
           
protected  java.util.Hashtable htExcludeTagIds
           
protected  java.util.Hashtable htIncludeTagIds
           
protected  java.util.Hashtable htTagData
           
protected  long nSavedPointer
           
protected  com.flexstor.common.io.xfile.FlexXRandomAccessFile refXRandomFile
           
 
Constructor Summary
TiffFile(com.flexstor.common.io.xfile.FlexXFile refXFile)
           
TiffFile(java.lang.String sFilename)
           
 
Method Summary
protected  void ABNDebug(java.lang.String sMsg)
           
protected  void ABNError(java.lang.String sMsg)
           
 boolean addExcludeTagId(int nTagId)
           
 boolean addIncludeTagId(int nTagId)
           
protected  int binaryToInt(byte[] anBuffer, int nStartIndex, int nLength)
           
protected  void closeFile()
           
 java.util.Hashtable getExcludeTagIdTable()
           
 com.flexstor.common.io.xfile.FlexXRandomAccessFile getFileReference()
           
 java.util.Hashtable getIncludeTagIdTable()
           
 byte[] getTagData(int nTagID)
           
protected  boolean goToOffset(long nOffset)
           
protected  int hexBytesToInt(byte[] abHexBytes, int nStartPos, int nLength)
          This method converts part of an array of bytes into an integer value.
 boolean isIntel()
           
protected  boolean isTagExcluded(int nTagId)
           
protected  boolean isTagIncluded(int nTagId)
           
 boolean loadTagDirectory()
           
protected  void openFile(com.flexstor.common.io.xfile.FlexXFile refXFile)
           
protected  boolean parseTag(byte[] anTagBuffer)
           
protected  void printTagData(byte[] anTagData)
          Debug code
protected  boolean processIFD(long nIfdOffset)
           
protected  boolean processTags(int nTagCount)
           
protected  byte[] readBytes(int nCount)
           
 boolean removeExcludeTagId(int nTagId)
           
 boolean removeIncludeTagId(int nTagId)
           
protected  boolean restorePointer(long nFilePosition)
           
protected  long savePointer()
           
 void setExcludeTagIdTable(java.util.Hashtable htTable)
          The Tad Id exclude table can contain the id of those tags that will NOT be parsed
 void setIncludeTagIdTable(java.util.Hashtable htTable)
          The Tad Id include table can contain the id of those tags that will NOT be parsed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

refXRandomFile

protected com.flexstor.common.io.xfile.FlexXRandomAccessFile refXRandomFile

htTagData

protected java.util.Hashtable htTagData

htExcludeTagIds

protected java.util.Hashtable htExcludeTagIds

htIncludeTagIds

protected java.util.Hashtable htIncludeTagIds

bIntelFormat

protected boolean bIntelFormat

nSavedPointer

protected long nSavedPointer

bDebug

protected boolean bDebug
Constructor Detail

TiffFile

public TiffFile(java.lang.String sFilename)

TiffFile

public TiffFile(com.flexstor.common.io.xfile.FlexXFile refXFile)
Method Detail

loadTagDirectory

public boolean loadTagDirectory()

getTagData

public byte[] getTagData(int nTagID)

isIntel

public boolean isIntel()

getFileReference

public com.flexstor.common.io.xfile.FlexXRandomAccessFile getFileReference()

setExcludeTagIdTable

public void setExcludeTagIdTable(java.util.Hashtable htTable)
The Tad Id exclude table can contain the id of those tags that will NOT be parsed


getExcludeTagIdTable

public java.util.Hashtable getExcludeTagIdTable()

addExcludeTagId

public boolean addExcludeTagId(int nTagId)

removeExcludeTagId

public boolean removeExcludeTagId(int nTagId)

setIncludeTagIdTable

public void setIncludeTagIdTable(java.util.Hashtable htTable)
The Tad Id include table can contain the id of those tags that will NOT be parsed


getIncludeTagIdTable

public java.util.Hashtable getIncludeTagIdTable()

addIncludeTagId

public boolean addIncludeTagId(int nTagId)

removeIncludeTagId

public boolean removeIncludeTagId(int nTagId)

isTagExcluded

protected boolean isTagExcluded(int nTagId)

isTagIncluded

protected boolean isTagIncluded(int nTagId)

processIFD

protected boolean processIFD(long nIfdOffset)

processTags

protected boolean processTags(int nTagCount)

parseTag

protected boolean parseTag(byte[] anTagBuffer)

binaryToInt

protected int binaryToInt(byte[] anBuffer,
                          int nStartIndex,
                          int nLength)

hexBytesToInt

protected int hexBytesToInt(byte[] abHexBytes,
                            int nStartPos,
                            int nLength)
This method converts part of an array of bytes into an integer value. (For our purposes, we will not exceed four bytes.)


openFile

protected void openFile(com.flexstor.common.io.xfile.FlexXFile refXFile)

closeFile

protected void closeFile()

readBytes

protected byte[] readBytes(int nCount)

goToOffset

protected boolean goToOffset(long nOffset)

restorePointer

protected boolean restorePointer(long nFilePosition)

savePointer

protected long savePointer()

printTagData

protected void printTagData(byte[] anTagData)
Debug code


ABNDebug

protected void ABNDebug(java.lang.String sMsg)

ABNError

protected void ABNError(java.lang.String sMsg)