Package com.drew.imaging.jpeg

Examples of com.drew.imaging.jpeg.JpegSegmentReader


     * Creates a JpegCommentReader for a JPEG stream.
     * @param is JPEG stream. Stream will be closed.
     */
    public JpegCommentReader(InputStream is) throws JpegProcessingException
    {
        this(new JpegSegmentReader(is).readSegment(JpegSegmentReader.SEGMENT_APPD));
    }
View Full Code Here


     * @deprecated Not all files will be Jpegs!  Use a constructor that provides the IPTC segment in isolation.
     */
    public IptcReader(File jpegFile) throws JpegProcessingException
    {
        // TODO consider removing this constructor and requiring callers to pass a byte[] or other means to read the IPTC segment in isolation... not all files will be Jpegs!
        this(new JpegSegmentReader(jpegFile).readSegment(JpegSegmentReader.SEGMENT_APPD));
    }
View Full Code Here

     * @deprecated Not all files will be Jpegs!  Use a constructor that provides the IPTC segment in isolation.
     */
    public IptcReader(InputStream jpegInputStream) throws JpegProcessingException
    {
        // TODO consider removing this constructor and requiring callers to pass a byte[] or other means to read the IPTC segment in isolation... not all files will be Jpegs!
        this(new JpegSegmentReader(jpegInputStream).readSegment(JpegSegmentReader.SEGMENT_APPD));
    }
View Full Code Here

    }

    public void parseJpeg(File file)
            throws IOException, SAXException, TikaException {
        try {
            JpegSegmentReader reader = new JpegSegmentReader(file);
            extractMetadataFromSegment(
                    reader, JpegSegmentReader.SEGMENT_APP1, ExifReader.class);
            extractMetadataFromSegment(
                    reader, JpegSegmentReader.SEGMENT_APPD, IptcReader.class);
            extractMetadataFromSegment(
View Full Code Here

TOP

Related Classes of com.drew.imaging.jpeg.JpegSegmentReader

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.