|
|||||||||
| Home >> All >> org >> ydp >> [ gfx overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.ydp.gfx
Class GraphicRead

java.lang.Objectorg.ydp.gfx.GraphicRead
- public class GraphicRead
- extends java.lang.Object
| Field Summary | |
private java.util.Vector |
buff
|
private int[] |
buff_check
|
private java.lang.String |
color_space
|
private java.lang.String |
date_original
|
private java.lang.String |
equipment_maker
|
private java.lang.String |
equipment_model
|
private java.lang.String |
exposure_metering_mode
|
private java.lang.String |
exposure_program
|
private java.lang.String |
exposure_time
|
private java.lang.String |
flash
|
private java.lang.String |
image_height
|
private java.lang.String |
image_width
|
private java.lang.String |
iso_speed_equivalent
|
private java.lang.String |
lens_fnumber
|
private java.lang.String |
lens_focal_length
|
private java.lang.String |
light_source
|
private java.lang.String |
maximum_aperture
|
private java.lang.String |
software
|
private java.lang.String |
time_original
|
| Constructor Summary | |
GraphicRead()
Default constructor for GraphicRead. |
|
GraphicRead(java.io.File exif)
Initialization constructor for GraphicRead. |
|
| Method Summary | |
private java.lang.String |
ASCII_finder(int offset,
int length)
ASCII_finder - finds a string in the raw Ascii buffer - use offset to locate data in buffer, and length to look at that many bytes. |
private int |
buff_offset_int(int offset)
buff_offsett_int helper function to return an integer out of a Vector. |
private void |
cycle_buff(int data)
cycle_buff - shifts all integers in the array to the left one and adds data to the end. |
java.lang.String |
getColorSpace()
Returns EXIF tag value of color space |
java.lang.String |
getDateOriginal()
Returns EXIF tag value of date (original) |
java.lang.String |
getEquipmentMaker()
Returns EXIF tag value of equipment maker |
java.lang.String |
getEquipmentModel()
Returns EXIF tag value of equipment model |
java.lang.String |
getExposureMeteringMode()
Returns EXIF tag value of exposure metering mode |
java.lang.String |
getExposureProgram()
Returns EXIF tag value of exposure program * @return integer value of exposure program, -1 if unavailable |
java.lang.String |
getExposureTime()
Returns EXIF tag value of exposure time |
java.lang.String |
getFlash()
Returns EXIF tag value of flash status |
java.lang.String |
getImageHeight()
Returns EXIF tag value of image height |
java.lang.String |
getImageWidth()
Returns EXIF tag value of image width |
java.lang.String |
getISOSpeedEquivalent()
Returns EXIF tag value of ISO speed equivalent |
java.lang.String |
getLensFNumber()
Returns EXIF tag value of lens F-number |
java.lang.String |
getLensFocalLength()
Returns EXIF tag value of lens focal length |
java.lang.String |
getLightSource()
Returns EXIF tag value of light source setting |
java.lang.String |
getMaximumApertureSetting()
Returns EXIF tag value of maximum aperture setting |
java.lang.String |
getSoftware()
Returns EXIF tag value of software |
java.lang.String |
getTimeOriginal()
Returns EXIF tag value of time (original) |
void |
initialize(java.io.File exif)
Initialization method for GraphicRead. |
static void |
main(java.lang.String[] args)
Beta testing main - used for testing, simulated calles that could be made by the front end software. |
private java.lang.String |
Rational_finder(int offset)
Rational_Finder - finds a rational type in the buffer - use offset to locate in buffer |
private java.util.Vector |
read_the_file(java.io.FileInputStream infile)
read_the_file - reads the file byte-by-byte, feeds bytes in to a buffer, and called functions to look for valid tags |
private void |
tag_search()
tag_search creates: type = buff_check[2] length = buff_check[4]+(buff_check[5]*256)+(buff_check[6]* 65536)+(buff_check[7]*16777216) value = buff_check[8]+(buff_check[9]*256)+(buff_check[10]* 65536)+(buff_check[11]*16777216) tag = (buff_check[1]*256)+buff_check[0] Then use the Tag, (sometimes length, sometimes type as secondary) to id if there there is a valid tag. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
equipment_maker
private java.lang.String equipment_maker
equipment_model
private java.lang.String equipment_model
software
private java.lang.String software
exposure_time
private java.lang.String exposure_time
lens_fnumber
private java.lang.String lens_fnumber
exposure_program
private java.lang.String exposure_program
iso_speed_equivalent
private java.lang.String iso_speed_equivalent
date_original
private java.lang.String date_original
time_original
private java.lang.String time_original
maximum_aperture
private java.lang.String maximum_aperture
exposure_metering_mode
private java.lang.String exposure_metering_mode
light_source
private java.lang.String light_source
flash
private java.lang.String flash
lens_focal_length
private java.lang.String lens_focal_length
color_space
private java.lang.String color_space
image_width
private java.lang.String image_width
image_height
private java.lang.String image_height
buff
private java.util.Vector buff
buff_check
private int[] buff_check
| Constructor Detail |
GraphicRead
public GraphicRead()
- Default constructor for GraphicRead.
GraphicRead
public GraphicRead(java.io.File exif)
- Initialization constructor for GraphicRead.
This method creates an instance of GraphicRead
and initializes it with the data extracted from the
specified file
This method is identical to calling the default constructor
followed by
initialize(exif).
| Method Detail |
main
public static void main(java.lang.String[] args)
- Beta testing main - used for testing, simulated calles that could
be made by the front end software.
initialize
public void initialize(java.io.File exif)
- Initialization method for GraphicRead.
This method initializes the data for this instance
of a GraphicRead object with the data extracted from
the specified file
buff_offset_int
private int buff_offset_int(int offset)
- buff_offsett_int
helper function to return an integer out of a Vector.
read_the_file
private java.util.Vector read_the_file(java.io.FileInputStream infile)
- read_the_file
- reads the file byte-by-byte, feeds bytes in to a buffer, and
called functions to look for valid tags
cycle_buff
private void cycle_buff(int data)
- cycle_buff
- shifts all integers in the array to the left one and adds data to
the end. buff_check is of size 12.
tag_search
private void tag_search()
- tag_search
creates: type = buff_check[2]
length = buff_check[4]+(buff_check[5]*256)+(buff_check[6]*
65536)+(buff_check[7]*16777216)
value = buff_check[8]+(buff_check[9]*256)+(buff_check[10]*
65536)+(buff_check[11]*16777216)
tag = (buff_check[1]*256)+buff_check[0]
Then use the Tag, (sometimes length, sometimes type as secondary) to
id if there there is a valid tag.
valid tags :
271 Make
272 Model
305 Software
40961 ColorSpace
40962 PixelXDimension
40963 PixelYDimension
36867 DateTimeOriginal
33434 ExposureTime
33437 FNumber
34850 ExposureProgram
34855 ISOSpeedRatings
37378 ApertureValue
37381 MaxApertureValue
37383 MeteringMode
37384 LightSource
37385 Flash
37386 FocalLength
ASCII_finder
private java.lang.String ASCII_finder(int offset, int length)
- ASCII_finder
- finds a string in the raw Ascii buffer
- use offset to locate data in buffer, and length to look at that many
bytes. Note length is always one larger then what is in the file to
include a chr(0) as padding
Rational_finder
private java.lang.String Rational_finder(int offset)
- Rational_Finder
- finds a rational type in the buffer
- use offset to locate in buffer
getEquipmentMaker
public java.lang.String getEquipmentMaker()
- Returns EXIF tag value of equipment maker
getEquipmentModel
public java.lang.String getEquipmentModel()
- Returns EXIF tag value of equipment model
getSoftware
public java.lang.String getSoftware()
- Returns EXIF tag value of software
getExposureTime
public java.lang.String getExposureTime()
- Returns EXIF tag value of exposure time
getLensFNumber
public java.lang.String getLensFNumber()
- Returns EXIF tag value of lens F-number
getExposureProgram
public java.lang.String getExposureProgram()
- Returns EXIF tag value of exposure program
* @return integer value of exposure program,
-1if unavailable
getISOSpeedEquivalent
public java.lang.String getISOSpeedEquivalent()
- Returns EXIF tag value of ISO speed equivalent
getDateOriginal
public java.lang.String getDateOriginal()
- Returns EXIF tag value of date (original)
getTimeOriginal
public java.lang.String getTimeOriginal()
- Returns EXIF tag value of time (original)
getMaximumApertureSetting
public java.lang.String getMaximumApertureSetting()
- Returns EXIF tag value of maximum aperture setting
getExposureMeteringMode
public java.lang.String getExposureMeteringMode()
- Returns EXIF tag value of exposure metering mode
getLightSource
public java.lang.String getLightSource()
- Returns EXIF tag value of light source setting
getFlash
public java.lang.String getFlash()
- Returns EXIF tag value of flash status
getLensFocalLength
public java.lang.String getLensFocalLength()
- Returns EXIF tag value of lens focal length
getColorSpace
public java.lang.String getColorSpace()
- Returns EXIF tag value of color space
getImageWidth
public java.lang.String getImageWidth()
- Returns EXIF tag value of image width
getImageHeight
public java.lang.String getImageHeight()
- Returns EXIF tag value of image height
|
|||||||||
| Home >> All >> org >> ydp >> [ gfx overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.ydp.gfx.GraphicRead