| Modifier and Type | Field and Description |
|---|---|
| protected final boolean | |
| protected Location | _lastLocation
Last used location info; only relevant to non-accurate-location allocators. |
| pack-priv static final EventAllocatorImpl |
| Access | Constructor and Description |
|---|---|
| protected | EventAllocatorImpl(boolean
If true, allocator will construct instances
that have accurate location information; if false, instances
will only have some generic shared Location info. Latter option
will reduce memory usage/thrashing a bit, and may improve speed. preserveLocation)
|
| Modifier and Type | Method and Description |
|---|---|
| public XMLEvent | allocate(XMLStreamReader
The XMLStreamReader to allocate from r)Overrides org. Implements javax. |
| public static EventAllocatorImpl | |
| public static EventAllocatorImpl | |
| protected Location | getLocation(XMLStreamReader r)
Overrides org. Location object to use for
an event to create.
|
| public XMLEventAllocator | newInstance()
Overrides org. Implements javax. |
| _cfgPreserveLocation | back to summary |
|---|---|
| protected final boolean _cfgPreserveLocation | |
| _lastLocation | back to summary |
|---|---|
| protected Location _lastLocation Last used location info; only relevant to non-accurate-location allocators. | |
| sStdInstance | back to summary |
|---|---|
| pack-priv static final EventAllocatorImpl sStdInstance | |
| EventAllocatorImpl | back to summary |
|---|---|
protected EventAllocatorImpl(boolean preserveLocation)
| |
| allocate | back to summary |
|---|---|
| public XMLEvent allocate(XMLStreamReader r) throws XMLStreamException Overrides org. Implements javax. Doc from javax. This method allocates an event given the current state of the XMLStreamReader. If this XMLEventAllocator does not have a one-to-one mapping between reader states and events this method will return null. This method must not modify the state of the XMLStreamReader.
| |
| getDefaultInstance | back to summary |
|---|---|
| public static EventAllocatorImpl getDefaultInstance() | |
| getFastInstance | back to summary |
|---|---|
| public static EventAllocatorImpl getFastInstance() | |
| getLocation | back to summary |
|---|---|
| protected Location getLocation(XMLStreamReader r) Overrides org. Method used to get the
| |
| newInstance | back to summary |
|---|---|
| public XMLEventAllocator newInstance() Overrides org. Implements javax. Default implementation assumes that the caller knows how to share instances, and so need not create new copies. Note if this class is sub-classes, this method should be redefined if assumptions about shareability do not hold.
| |