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 EPSParser  view EPSParser download EPSParser.java

java.lang.Object
  extended bycom.flexstor.flexdbserver.services.asset.iptc.IPTCParser
      extended bycom.flexstor.flexdbserver.services.asset.iptc.EPSParser
All Implemented Interfaces:
IIPTCParser

public class EPSParser
extends IPTCParser
implements IIPTCParser


Field Summary
(package private)  boolean bDebug
          DEBUG
(package private)  com.flexstor.common.io.xfile.FlexXRandomAccessFile refFile
           
 
Fields inherited from class com.flexstor.flexdbserver.services.asset.iptc.IPTCParser
hDataSets
 
Constructor Summary
EPSParser(com.flexstor.common.io.xfile.FlexXFile refXFile)
           
 
Method Summary
protected  void ABNDebug(java.lang.String sMsg)
           
protected  java.lang.String binaryHexToChar(byte[] abBinary)
          Binary hex consists of two consequtive binary hex ascii bytes each of which when decoded represents half of a hex ascii char.
protected  java.lang.String binaryHexToString(byte[] abBinaryData)
           
 void debugPrintHash()
           
protected  boolean findChar(char cChar)
           
 java.lang.String getDatasetValue(java.lang.String sDatasetID)
          Obtain the value for the specified Dataset number.
 java.util.Hashtable getIptcHashtable()
           
protected  java.lang.String getNextChar()
           
protected  boolean isNextString(java.lang.String sToMatch)
           
protected  boolean parseEfsHeader()
           
 boolean parseFile()
           
protected  byte[] parseIptcTags(int nResourceCount)
           
protected  byte[] parseResourceBlock()
           
protected  int parseStrToInt(java.lang.String sNumber)
           
protected  int parseStrToInt(java.lang.String sNumber, int nRadix)
           
protected  void printTagData(byte[] anTagData)
          Debug code
protected  java.lang.String putInCRs(java.lang.String sInput)
           
protected  byte[] readBytes(int nCount)
           
protected  boolean restorePointer(long nFilePosition)
           
protected  long savePointer()
           
protected  boolean skipBytes(int nCount)
           
 
Methods inherited from class com.flexstor.flexdbserver.services.asset.iptc.IPTCParser
BGPDebug, BGPError, hexBytesToInt, parseIPTCdata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

refFile

com.flexstor.common.io.xfile.FlexXRandomAccessFile refFile

bDebug

boolean bDebug
DEBUG

Constructor Detail

EPSParser

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

parseFile

public boolean parseFile()
Specified by:
parseFile in interface IIPTCParser

parseEfsHeader

protected boolean parseEfsHeader()

parseResourceBlock

protected byte[] parseResourceBlock()

parseIptcTags

protected byte[] parseIptcTags(int nResourceCount)

isNextString

protected boolean isNextString(java.lang.String sToMatch)

readBytes

protected byte[] readBytes(int nCount)

getNextChar

protected java.lang.String getNextChar()

findChar

protected boolean findChar(char cChar)

skipBytes

protected boolean skipBytes(int nCount)

binaryHexToChar

protected java.lang.String binaryHexToChar(byte[] abBinary)
Binary hex consists of two consequtive binary hex ascii bytes each of which when decoded represents half of a hex ascii char. For example: 33 38 -> 38 This method converts the binary hex bytes to a string character


binaryHexToString

protected java.lang.String binaryHexToString(byte[] abBinaryData)

restorePointer

protected boolean restorePointer(long nFilePosition)

savePointer

protected long savePointer()

parseStrToInt

protected int parseStrToInt(java.lang.String sNumber)

parseStrToInt

protected int parseStrToInt(java.lang.String sNumber,
                            int nRadix)

getDatasetValue

public java.lang.String getDatasetValue(java.lang.String sDatasetID)
Obtain the value for the specified Dataset number.

Specified by:
getDatasetValue in interface IIPTCParser

printTagData

protected void printTagData(byte[] anTagData)
Debug code


debugPrintHash

public void debugPrintHash()

getIptcHashtable

public java.util.Hashtable getIptcHashtable()

putInCRs

protected java.lang.String putInCRs(java.lang.String sInput)

ABNDebug

protected void ABNDebug(java.lang.String sMsg)