| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ParsingContext | |
| private final int | |
| public static final String | |
| private final ExecutorService | |
| private final Stack | |
| private final ReentrantLock | |
| private final ReadWriteLock | |
| private final boolean | |
| private final Map | |
| private final ReentrantLock |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Exception[] | |
| public Exception[] | |
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| private ArchiveAdapter | |
| private ExecutorService | |
| private void | |
| public ParsingContext | Returns: the parsing context this parser uses to store the parsing activities results.Returns the context this parser instance was initialized with during
the call to |
| private static URI | |
| private static File | |
| private Types | |
| public void | |
| public Future | Returns: the future object to monitor the result of the parsing.the archive adapter to parse source, final Runnable the runnable hook to run after completion doneHook)Parse the archive adapter entries and run the runnable hook on completion. |
| private void |
| context | back to summary |
|---|---|
| private final ParsingContext context | |
| DEFAULT_TIMEOUT | back to summary |
|---|---|
| private final int DEFAULT_TIMEOUT | |
| DEFAULT_WAIT_SYSPROP | back to summary |
|---|---|
| public static final String DEFAULT_WAIT_SYSPROP | |
| executorService | back to summary |
|---|---|
| private final ExecutorService executorService | |
| futures | back to summary |
|---|---|
| private final Stack<Future<Parser. | |
| futuresLock | back to summary |
|---|---|
| private final ReentrantLock futuresLock | |
| lock | back to summary |
|---|---|
| private final ReadWriteLock lock | |
| ownES | back to summary |
|---|---|
| private final boolean ownES | |
| processedURI | back to summary |
|---|---|
| private final Map<String, Types> processedURI | |
| thislock | back to summary |
|---|---|
| private final ReentrantLock thislock | |
| Parser | back to summary |
|---|---|
| public Parser(ParsingContext context) | |
| awaitTermination | back to summary |
|---|---|
| public Exception[] awaitTermination() throws InterruptedException | |
| awaitTermination | back to summary |
|---|---|
| public Exception[] awaitTermination(int timeOut, TimeUnit unit) throws InterruptedException | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| createArchiveAdapter | back to summary |
|---|---|
| private ArchiveAdapter createArchiveAdapter(File source, Runnable doneHook) throws IOException | |
| createExecutorService | back to summary |
|---|---|
| private ExecutorService createExecutorService() | |
| doJob | back to summary |
|---|---|
| private void doJob(final ArchiveAdapter adapter, final Runnable doneHook) throws Exception | |
| getContext | back to summary |
|---|---|
| public ParsingContext getContext() Returns the context this parser instance was initialized with during
the call to
| |
| getDefiningURI | back to summary |
|---|---|
| private static URI getDefiningURI(File file) | |
| getFilePath | back to summary |
|---|---|
| private static File getFilePath(String path, String resourceName) | |
| getResult | back to summary |
|---|---|
| private Types getResult(URI uri) | |
| parse | back to summary |
|---|---|
| public void parse(final File source, final Runnable doneHook) throws IOException | |
| parse | back to summary |
|---|---|
| public Future Parse the archive adapter entries and run the runnable hook on completion.
| |
| saveResult | back to summary |
|---|---|
| private void saveResult(URI uri, Types types) | |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| fault | back to summary |
|---|---|
| public final Exception fault | |
| name | back to summary |
|---|---|
| public final String name | |
| Result | back to summary |
|---|---|
| private Result(String name, Exception fault) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |