Package com.adobe.xmp.core.parser
Class RDFXMLParser
java.lang.Object
com.adobe.xmp.core.parser.RDFXMLParser
- All Implemented Interfaces:
XMPParser
RDF/XML Implementation of XMPParser-Interface,
it only delegates to the implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParse XMP in RDF/XML form from a byte buffer.parse(InputStream input, Map<String, Object> parseContext) Parse XMP in RDF/XML form from an InputStream.Parse XMP in RDF/XML form from a String The parser will simply ignore sub-trees that contain invalid XMP data.
-
Constructor Details
-
RDFXMLParser
public RDFXMLParser()
-
-
Method Details
-
parse
Description copied from interface:XMPParserParse XMP in RDF/XML form from an InputStream. The input for parsing may be any valid Unicode encoding, it is recognized automatically. The client has to open/close the stream. The parser will simply ignore sub-trees that contain invalid XMP data. It will only throw on serious errors.- Specified by:
parsein interfaceXMPParser- Parameters:
input- the stream contains an XMP packet serialized as RDF/XMLparseContext- a map to provide options for the parser, or return additional information other than the XMP data model; can be null if not needed- Returns:
- an XMPMetadata object created from the input
- Throws:
XMPException- If the data is invalid XML, invalid XMP or contains invalid data- See Also:
-
parse
Description copied from interface:XMPParserParse XMP in RDF/XML form from a String The parser will simply ignore sub-trees that contain invalid XMP data. It will only throw on serious errors.- Specified by:
parsein interfaceXMPParser- Parameters:
input- String that contains an XMP packet serialized as RDF/XMLparseContext- a map to provide options for the parser, or return additional information other than the XMP data model; can be null if not needed- Returns:
- an XMPMetadata object
- Throws:
XMPException- See Also:
-
parse
Description copied from interface:XMPParserParse XMP in RDF/XML form from a byte buffer. The data must be encoded with UTF-8. The parser will simply ignore sub-trees that contain invalid XMP data. It will only throw on serious errors.- Specified by:
parsein interfaceXMPParser- Parameters:
input- buffer that contains an XMP packet serialized as RDF/XMLparseContext- a map to provide options for the parser, or return additional information other than the XMP data model; can be null if not needed- Returns:
- an XMPMetadata object
- Throws:
XMPException- See Also:
-