com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class JpegFormat

    • Constructor Detail

      • JpegFormat

        public JpegFormat(String fileName)

        Initializes a new instance of the JpegFormat class.

        Parameters:
        fileName - A string that contains the full name of the file from which to create a JpegFormat instance.
      • JpegFormat

        public JpegFormat(InputStream input)

        Initializes a new instance of the JpegFormat class.

        Parameters:
        input - A stream that contains the data for this JpegFormat.
    • Method Detail

      • getType

        public int getType()

        Gets the type of the loaded file.

        Specified by:
        getType in class FormatBase
        Returns:
        The type of the loaded file.
      • hasXmp

        public final boolean hasXmp()

        Gets a value indicating whether the file contains XMP metadata.

        Specified by:
        hasXmp in interface IXmp
        Returns:
        true if the file contains an XMP metadata package; otherwise, false.
      • getExifValues

        public final ExifInfo getExifValues()

        Gets the EXIF metadata package associated with the file.

        Specified by:
        getExifValues in interface IExif
        Returns:
        The EXIF metadata package associated with the file.
      • getXmpValues

        public final XmpEditableCollection getXmpValues()

        Gets a collection containing the XMP metadata properties. Provides access to all XMP properties in edit mode.

        Specified by:
        getXmpValues in interface IXmp
        Returns:
        The XMP values.
      • getIptcValues

        public final IptcDataSetCollection getIptcValues()

        Gets the IPTC metadata package associated with the file.

        Specified by:
        getIptcValues in interface IIptc
        Returns:
        The IPTC metadata package associated with the file.
      • setIptcValues

        public final void setIptcValues(IptcDataSetCollection value)

        Sets the IPTC metadata package associated with the file.

        Specified by:
        setIptcValues in interface IIptc
        Parameters:
        value - The IPTC metadata package associated with the file.
      • hasIptc

        @Deprecated
        public final boolean hasIptc()
        Deprecated. 

        Gets a value indicating whether JPEG contains IPTC IIM metadata.

        Specified by:
        hasIptc in interface IIptc
        Returns:
        true if image has IPTC IIM metadata; otherwise, false.
      • hasBarCodes

        public final boolean hasBarCodes()

        Gets a value indicating whether image has barcodes.

        Specified by:
        hasBarCodes in interface IBarCodeDetector
        Returns:
        true if file has bar codes; otherwise, false.
      • hasImageResourceBlocks

        public final boolean hasImageResourceBlocks()

        Gets a value indicating whether file contains Photoshop Image Resource Blocks.

        Specified by:
        hasImageResourceBlocks in interface IImageResourceBlocks
        Returns:
        true if file has image resource blocks; otherwise, false.
      • getExifInfo

        public final ExifInfo getExifInfo()

        Extracts the EXIF metadata package (if found).

        Specified by:
        getExifInfo in interface IExif
        Returns:
        The ExifInfo if the file contains EXIF metadata; otherwise, null.
      • removeExifInfo

        public final boolean removeExifInfo()

        Removes the existing EXIF metadata package.

        Specified by:
        removeExifInfo in interface IExif
        Returns:
        true if the EXIF package is successfully removed; otherwise, false.


        This feature is not available in trial mode.

      • removeGpsLocation

        public final boolean removeGpsLocation()

        Removes GPS coordinates associated with the file.

        Specified by:
        removeGpsLocation in interface IExif
        Returns:
        true if the GPS location is successfully removed; otherwise, false.


        This feature is not available in trial mode.

      • getGpsLocation

        public final GpsLocation getGpsLocation()

        Gets GPS coordinates where the photo was taken.

        Specified by:
        getGpsLocation in interface IExif
        Returns:
        The GpsLocation if the file contains appropriate metadata properties; otherwise, null.


        This feature is not available in trial mode.

      • setExifInfo

        public final boolean setExifInfo(ExifInfo exifInfo)

        Updates EXIF metadata.

        Parameters:
        exifInfo - An EXIF metadata package.


        This feature is not available in trial mode.

        Returns:
        true if the EXIF package is successfully replaced; otherwise, false.
      • updateExifInfo

        public final boolean updateExifInfo(ExifInfo exifInfo)

        Updates EXIF metadata.

        Specified by:
        updateExifInfo in interface IExif
        Parameters:
        exifInfo - An EXIF metadata package.


        This feature is not available in trial mode.

        Returns:
        true if the EXIF package is successfully replaced; otherwise, false.
      • getMakernotes

        public final MakerNotesBase getMakernotes()

        Gets the makernotes from EXIF.

        Returns:
        MakerNotesBase.
      • getXmpData

        public final XmpPacketWrapper getXmpData()

        Returns the XMP packet.

        Specified by:
        getXmpData in interface IXmp
        Returns:
        The XmpPacketWrapper if the file contains an XMP metadata package; otherwise, null.
      • getXmpProperties

        public final XmpProperties getXmpProperties()

        Returns all XMP properties presented in a specific format.

        Specified by:
        getXmpProperties in interface IXmp
        Returns:
        The XmpProperties if the file contains an XMP metadata package; otherwise, null.
      • setXmpData

        public final boolean setXmpData(XmpPacketWrapper package_)

        Updates the XMP packet.

        Specified by:
        setXmpData in interface IXmp
        Parameters:
        package - An XMP packet wrapper.
        Returns:
        true if the XMP package is successfully updated; otherwise, false.
      • removeXmpData

        public final void removeXmpData()

        Removes the XMP metadata.


        This feature is not available in trial mode.

        Specified by:
        removeXmpData in interface IXmp
      • getDublinCore

        public final DublinCoreMetadata getDublinCore()

        Retrieves the Dublin Core metadata.

        Specified by:
        getDublinCore in interface IDublinCore
        Returns:
        The DublinCoreMetadata if the appropriate package is found; otherwise, null.
      • updateIptc

        @Deprecated
        public final void updateIptc(IptcCollection collection)
        Deprecated. 

        Updates IPTC metadata.

        Specified by:
        updateIptc in interface IIptc
        Parameters:
        collection - IPTC collection.
      • updateIptc

        @Deprecated
        public final void updateIptc(IptcDataSet dataSet)
        Deprecated. 

        Updates specific IPTC dataset.

        Specified by:
        updateIptc in interface IIptc
        Parameters:
        dataSet - IPTC dataset.
      • removeIptc

        @Deprecated
        public final void removeIptc()
        Deprecated. 

        Removes IPTC metadata from image.

        Specified by:
        removeIptc in interface IIptc
      • getBarCodeTypes

        public final String[] getBarCodeTypes()

        Extracts the types of the barcodes presented in the image.

        Specified by:
        getBarCodeTypes in interface IBarCodeDetector
        Returns:
        An array of barcode types.
      • removePhotoshopData

        public final void removePhotoshopData()

        Removes Photoshop image resource blocks.


        This feature is not available in trial mode.

      • cleanMetadata

        public void cleanMetadata()

        Removes writable metadata properties associated with the file.


        This feature is not available in trial mode.

        Overrides:
        cleanMetadata in class ImageFormat