Class IptcParser
java.lang.Object
org.apache.commons.imaging.common.BinaryFileParser
org.apache.commons.imaging.formats.jpeg.iptc.IptcParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isPhotoshopJpegSegment
(byte[] segmentData) parseAllBlocks
(byte[] bytes, boolean strict) protected List<IptcRecord>
parseIptcBlock
(byte[] bytes) parsePhotoshopSegment
(byte[] bytes, boolean strict) parsePhotoshopSegment
(byte[] bytes, ImagingParameters<JpegImagingParameters> params) byte[]
writeIptcBlock
(List<IptcRecord> elements) byte[]
Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
Constructor Details
-
IptcParser
public IptcParser()
-
-
Method Details
-
isPhotoshopJpegSegment
-
parseAllBlocks
protected List<IptcBlock> parseAllBlocks(byte[] bytes, boolean strict) throws ImagingException, IOException - Throws:
ImagingException
IOException
-
parseIptcBlock
-
parsePhotoshopSegment
public PhotoshopApp13Data parsePhotoshopSegment(byte[] bytes, boolean strict) throws ImagingException, IOException - Throws:
ImagingException
IOException
-
parsePhotoshopSegment
public PhotoshopApp13Data parsePhotoshopSegment(byte[] bytes, ImagingParameters<JpegImagingParameters> params) throws ImagingException, IOException - Throws:
ImagingException
IOException
-
writeIptcBlock
- Throws:
ImagingException
IOException
-
writePhotoshopApp13Segment
public byte[] writePhotoshopApp13Segment(PhotoshopApp13Data data) throws IOException, ImagingException - Throws:
IOException
ImagingException
-