Class PSDParser

java.lang.Object
org.apache.tika.parser.image.PSDParser
All Implemented Interfaces:
Serializable, org.apache.tika.parser.Parser

public class PSDParser extends Object implements org.apache.tika.parser.Parser
Parser for the Adobe Photoshop PSD File Format.

Documentation on the file format is available from http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/PhotoshopFileFormats.htm

An MIT-licensed python parser with test files is: https://github.com/psd-tools/psd-tools

See Also:
  • Constructor Details

    • PSDParser

      public PSDParser()
  • Method Details

    • getSupportedTypes

      public Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)
      Specified by:
      getSupportedTypes in interface org.apache.tika.parser.Parser
    • parse

      public void parse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context) throws IOException, SAXException, org.apache.tika.exception.TikaException
      Specified by:
      parse in interface org.apache.tika.parser.Parser
      Throws:
      IOException
      SAXException
      org.apache.tika.exception.TikaException
    • setMaxDataLengthBytes

      @Field public void setMaxDataLengthBytes(int maxDataLengthBytes)
    • getMaxDataLengthBytes

      public int getMaxDataLengthBytes()