RDFXMLParser.java
1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xmp.core.parser;
import com.adobe.xmp.core.XMPException;
import com.adobe.xmp.core.XMPMetadata;
import com.adobe.xmp.core.parser.CheckDocTypeReader;
import com.adobe.xmp.core.parser.XMPParser;
import com.adobe.xmp.core.parser.impl.ParserImpl;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.Reader;
import java.io.StringReader;
import java.util.Map;
import org.xml.sax.InputSource;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
public class RDFXMLParser
implements XMPParser {
@Override
public XMPMetadata parse(InputStream input, Map<String, Object> parseContext) throws XMPException {
return ParserImpl.parse(new InputSource(input), parseContext);
}
@Override
public XMPMetadata parse(String input, Map<String, Object> parseContext) throws XMPException {
return ParserImpl.parse(new InputSource(new CheckDocTypeReader(new StringReader(input))), parseContext);
}
@Override
public XMPMetadata parse(byte[] input, Map<String, Object> parseContext) throws XMPException {
return ParserImpl.parse(new InputSource(new ByteArrayInputStream(input)), parseContext);
}
}