Package org.apache.tika.parser.image
Class PSDParser
java.lang.Object
org.apache.tika.parser.image.PSDParser
- All Implemented Interfaces:
Serializable,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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintSet<org.apache.tika.mime.MediaType>getSupportedTypes(org.apache.tika.parser.ParseContext context) voidparse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context) voidsetMaxDataLengthBytes(int maxDataLengthBytes)
-
Constructor Details
-
PSDParser
public PSDParser()
-
-
Method Details
-
getSupportedTypes
public Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context) - Specified by:
getSupportedTypesin interfaceorg.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:
parsein interfaceorg.apache.tika.parser.Parser- Throws:
IOExceptionSAXExceptionorg.apache.tika.exception.TikaException
-
setMaxDataLengthBytes
@Field public void setMaxDataLengthBytes(int maxDataLengthBytes) -
getMaxDataLengthBytes
public int getMaxDataLengthBytes()
-