public class apkParser extends AbstractParser implements Parser
Modifier and Type | Class and Description |
---|---|
static class |
apkParser.AndroidManifestParser |
Parser.Failure
log, SUPPORTED_EXTENSIONS, SUPPORTED_MIME_TYPES
Constructor and Description |
---|
apkParser() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
Document[] |
parse(DigestURL location,
java.lang.String mimeType,
java.lang.String charset,
java.util.jar.JarFile jf) |
Document[] |
parse(DigestURL location,
java.lang.String mimeType,
java.lang.String charset,
VocabularyScraper scraper,
int timezoneOffset,
java.io.InputStream source)
parse an input stream
|
static java.util.List<java.lang.String> |
resourcesArscParser(java.io.InputStream arscStream)
this arsc parser is far away from being correct, it's just a hack
|
equals, getName, hashCode, singleList, supportedExtensions, supportedMimeTypes
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
equals, getName, hashCode, supportedExtensions, supportedMimeTypes
public Document[] parse(DigestURL location, java.lang.String mimeType, java.lang.String charset, VocabularyScraper scraper, int timezoneOffset, java.io.InputStream source) throws Parser.Failure, java.lang.InterruptedException
Parser
parse
in interface Parser
location
- the url of the sourcemimeType
- the mime type of the source, if knowncharset
- the charset of the source, if knownscraper
- an entity scraper to detect facets from text annotation contextsource
- a input streamParser.Failure
java.lang.InterruptedException
public Document[] parse(DigestURL location, java.lang.String mimeType, java.lang.String charset, java.util.jar.JarFile jf)
public static java.util.List<java.lang.String> resourcesArscParser(java.io.InputStream arscStream) throws java.io.IOException
arscStream
- a stream from the arsc contentjava.io.IOException
public static void main(java.lang.String[] args)