Package gov.nasa.worldwind.util.xml
Class XMLEventParserContextFactory.ParserTableEntry
- java.lang.Object
-
- gov.nasa.worldwind.util.xml.XMLEventParserContextFactory.ParserTableEntry
-
- Enclosing class:
- XMLEventParserContextFactory
protected static class XMLEventParserContextFactory.ParserTableEntry extends java.lang.Object
Holds the mime types and the associated prototype parser.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
mimeTypes
The mime types for which the associated parser should be used.
-
Constructor Summary
Constructors Constructor Description ParserTableEntry(java.lang.String[] mimeTypes, XMLEventParserContext prototypeContext)
Construct an instance for a specified list of mime types and a specified prototype parser.
-
-
-
Constructor Detail
-
ParserTableEntry
public ParserTableEntry(java.lang.String[] mimeTypes, XMLEventParserContext prototypeContext)
Construct an instance for a specified list of mime types and a specified prototype parser.- Parameters:
mimeTypes
- the list of mime types for which to use the specified prototype parser context.prototypeContext
- the prototype parser context to use for the specified mime types. This parser context's class must provide a copy constructor, a constructor that takes an instance of its class as its only argument.- Throws:
java.lang.IllegalArgumentException
- if the mime type list is null or empty or the prototype context is null or has no copy constructor.
-
-