Class IptcParser
- java.lang.Object
-
- org.apache.commons.imaging.common.BinaryFileParser
-
- org.apache.commons.imaging.formats.jpeg.iptc.IptcParser
-
public class IptcParser extends BinaryFileParser
-
-
Constructor Summary
Constructors Constructor Description IptcParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPhotoshopJpegSegment(byte[] segmentData)protected List<IptcBlock>parseAllBlocks(byte[] bytes, boolean strict)protected List<IptcRecord>parseIPTCBlock(byte[] bytes)PhotoshopApp13DataparsePhotoshopSegment(byte[] bytes, boolean strict)PhotoshopApp13DataparsePhotoshopSegment(byte[] bytes, ImagingParameters params)byte[]writeIPTCBlock(List<IptcRecord> elements)byte[]writePhotoshopApp13Segment(PhotoshopApp13Data data)-
Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
-
-
-
Method Detail
-
isPhotoshopJpegSegment
public boolean isPhotoshopJpegSegment(byte[] segmentData)
-
parsePhotoshopSegment
public PhotoshopApp13Data parsePhotoshopSegment(byte[] bytes, ImagingParameters params) throws ImageReadException, IOException
- Throws:
ImageReadExceptionIOException
-
parsePhotoshopSegment
public PhotoshopApp13Data parsePhotoshopSegment(byte[] bytes, boolean strict) throws ImageReadException, IOException
- Throws:
ImageReadExceptionIOException
-
parseIPTCBlock
protected List<IptcRecord> parseIPTCBlock(byte[] bytes)
-
parseAllBlocks
protected List<IptcBlock> parseAllBlocks(byte[] bytes, boolean strict) throws ImageReadException, IOException
- Throws:
ImageReadExceptionIOException
-
writePhotoshopApp13Segment
public byte[] writePhotoshopApp13Segment(PhotoshopApp13Data data) throws IOException, ImageWriteException
- Throws:
IOExceptionImageWriteException
-
writeIPTCBlock
public byte[] writeIPTCBlock(List<IptcRecord> elements) throws ImageWriteException, IOException
- Throws:
ImageWriteExceptionIOException
-
-