Package org.apache.tika.parser.utils
Class DataURISchemeUtil
- java.lang.Object
-
- org.apache.tika.parser.utils.DataURISchemeUtil
-
public class DataURISchemeUtil extends java.lang.Object
Not thread safe. Create a separate util for each thread.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
UNSPECIFIED_MEDIA_TYPE
-
Constructor Summary
Constructors Constructor Description DataURISchemeUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DataURIScheme>
extract(java.lang.String string)
Extracts DataURISchemes from free text, as in javascript.DataURIScheme
parse(java.lang.String string)
-
-
-
Method Detail
-
parse
public DataURIScheme parse(java.lang.String string) throws DataURISchemeParseException
- Throws:
DataURISchemeParseException
-
extract
public java.util.List<DataURIScheme> extract(java.lang.String string)
Extracts DataURISchemes from free text, as in javascript.- Parameters:
string
-- Returns:
- list of extracted DataURISchemes
-
-