Package org.jboss.vfs

Enum VirtualJarFileInputStream.State

java.lang.Object
java.lang.Enum<VirtualJarFileInputStream.State>
org.jboss.vfs.VirtualJarFileInputStream.State
All Implemented Interfaces:
Serializable, Comparable<VirtualJarFileInputStream.State>, java.lang.constant.Constable
Enclosing class:
VirtualJarFileInputStream

private static enum VirtualJarFileInputStream.State extends Enum<VirtualJarFileInputStream.State>
Basic state machine that will allow the process to transition between the different process states.

The following describes the process flow: [NOT_STARTED] - Initial state - Does not provide content - Transitions [LOCAL_ENTRY_HEADER] [LOCAL_ENTRY_HEADER] - The phase for reading the Local Directory Header - Provides content of the local directory header by populating and feeding off a buffer - Transitions to [ENTRY_CONTENT] if the header was written - Transitions to [START_CENTRAL_DIRECTORY] if this is the last local entry header [ENTRY_CONTENT] - The phase for reading the content of an entry - Provides content of the entry using the VirtualJarInputStream - Transitions to [LOCAL_ENTRY_HEADER] [START_CENTRAL_DIRECTORY] - Phased used to transition into the central directory - Does not provide content - Transitions to [CENTRAL_ENTRY_HEADER] [CENTRAL_ENTRY_HEADER] - The phase for reading the content of a single central directory header - Provides content for the central directory header by feeding off a buffer - Transitions to [CENTRAL_ENTRY_HEADER] - Transitions to [CENTRAL_END] if there are no more entries [CENTRAL_END] - The phase for reading the contents of the central directory end - Provides content for central directory end by feeing off a buffer - Transitions to NULL to terminate the processing