public class Parser
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Class and Description |
|---|---|
class |
Parser.Result |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_WAIT_SYSPROP |
| Constructor and Description |
|---|
Parser(ParsingContext context) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Exception[] |
awaitTermination() |
java.lang.Exception[] |
awaitTermination(int timeOut,
java.util.concurrent.TimeUnit unit) |
void |
close() |
ParsingContext |
getContext()
Returns the context this parser instance was initialized with during
the call to
Parser(ParsingContext) |
java.util.concurrent.Future<Parser.Result> |
parse(ArchiveAdapter source,
java.lang.Runnable doneHook)
Parse the archive adapter entries and run the runnable hook on completion.
|
void |
parse(java.io.File source,
java.lang.Runnable doneHook) |
public static final java.lang.String DEFAULT_WAIT_SYSPROP
public Parser(ParsingContext context)
public java.lang.Exception[] awaitTermination()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic java.lang.Exception[] awaitTermination(int timeOut,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic void parse(java.io.File source,
java.lang.Runnable doneHook)
throws java.io.IOException
java.io.IOExceptionpublic java.util.concurrent.Future<Parser.Result> parse(ArchiveAdapter source, java.lang.Runnable doneHook) throws java.io.IOException
source - the archive adapter to parsedoneHook - the runnable hook to run after completionjava.io.IOException - thrown by the source archive adapter when accessing entriespublic ParsingContext getContext()
Parser(ParsingContext)Copyright © 2013 Oracle Corporation. All Rights Reserved.