Package com.lightcrafts.image.metadata.values

Examples of com.lightcrafts.image.metadata.values.DateMetaValue


                    return date;
            }

            final int delta = ((hh+zh) * 60 * 60 + (mm+zm) * 60 + ss) * 1000;

            final DateMetaValue newDateValue = (DateMetaValue)date.clone();
            final Date newDate = newDateValue.getDateValue();
            newDate.setTime( newDate.getTime() + delta );
            return newDateValue;
        }
        catch ( NumberFormatException e ) {
            return date;
View Full Code Here


        long length = file.length();
        ImageMetaValue lengthValue = new UnsignedLongMetaValue(length);
        core.putValue(CORE_FILE_SIZE, lengthValue);

        long time = file.lastModified();
        ImageMetaValue timeValue = new DateMetaValue(time);
        core.putValue(CORE_FILE_DATE_TIME, timeValue);

        return meta;
    }
View Full Code Here

TOP

Related Classes of com.lightcrafts.image.metadata.values.DateMetaValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.