Class ImageryReader.Parser
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.openstreetmap.josm.io.imagery.ImageryReader.Parser
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler
,org.xml.sax.DTDHandler
,org.xml.sax.EntityResolver
,org.xml.sax.ErrorHandler
- Enclosing class:
- ImageryReader
private static final class ImageryReader.Parser extends org.xml.sax.helpers.DefaultHandler
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringBuilder
accumulator
private ImageryInfo.ImageryBounds
bounds
private java.util.Map<ImageryInfo.ImageryBounds,ImageryInfo.ImageryBounds>
boundsInterner
private java.util.Map<java.lang.String,java.lang.String>
customHttpHeaders
private java.util.List<DefaultLayer>
defaultLayers
private java.util.List<ImageryInfo>
entries
private ImageryInfo
entry
private java.lang.String
lang
private static java.lang.String
MAX_ZOOM
private java.util.Map<java.lang.String,java.lang.String>
metadataHeaders
private static java.lang.String
MIN_ZOOM
private ImageryInfo
mirrorEntry
In case of mirror parsing this contains the mirror entryprivate MultiMap<java.lang.String,java.lang.String>
noTileChecksums
private MultiMap<java.lang.String,java.lang.String>
noTileHeaders
private static java.lang.String
PRIVACY_POLICY_URL
private java.util.List<java.lang.String>
projections
private Shape
shape
private boolean
skipEntry
Skip the current entry because it has mandatory attributes that this version of JOSM cannot process.private java.util.Stack<ImageryReader.State>
states
private static java.lang.String
TILE_SIZE
private static java.lang.String
TRUE
-
Constructor Summary
Constructors Modifier Constructor Description private
Parser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
void
endElement(java.lang.String namespaceURI, java.lang.String qName, java.lang.String rqName)
private ImageryInfo.ImageryBounds
intern(ImageryInfo.ImageryBounds imageryBounds)
void
startDocument()
void
startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
private java.util.Optional<java.lang.Integer>
tryParseInt()
-
-
-
Field Detail
-
MAX_ZOOM
private static final java.lang.String MAX_ZOOM
- See Also:
- Constant Field Values
-
MIN_ZOOM
private static final java.lang.String MIN_ZOOM
- See Also:
- Constant Field Values
-
TILE_SIZE
private static final java.lang.String TILE_SIZE
- See Also:
- Constant Field Values
-
PRIVACY_POLICY_URL
private static final java.lang.String PRIVACY_POLICY_URL
- See Also:
- Constant Field Values
-
TRUE
private static final java.lang.String TRUE
- See Also:
- Constant Field Values
-
accumulator
private java.lang.StringBuilder accumulator
-
states
private java.util.Stack<ImageryReader.State> states
-
entries
private java.util.List<ImageryInfo> entries
-
skipEntry
private boolean skipEntry
Skip the current entry because it has mandatory attributes that this version of JOSM cannot process.
-
entry
private ImageryInfo entry
-
mirrorEntry
private ImageryInfo mirrorEntry
In case of mirror parsing this contains the mirror entry
-
bounds
private ImageryInfo.ImageryBounds bounds
-
boundsInterner
private final java.util.Map<ImageryInfo.ImageryBounds,ImageryInfo.ImageryBounds> boundsInterner
-
lang
private java.lang.String lang
-
projections
private java.util.List<java.lang.String> projections
-
noTileHeaders
private MultiMap<java.lang.String,java.lang.String> noTileHeaders
-
noTileChecksums
private MultiMap<java.lang.String,java.lang.String> noTileChecksums
-
metadataHeaders
private java.util.Map<java.lang.String,java.lang.String> metadataHeaders
-
defaultLayers
private java.util.List<DefaultLayer> defaultLayers
-
customHttpHeaders
private java.util.Map<java.lang.String,java.lang.String> customHttpHeaders
-
-
Constructor Detail
-
Parser
private Parser()
-
-
Method Detail
-
startDocument
public void startDocument()
- Specified by:
startDocument
in interfaceorg.xml.sax.ContentHandler
- Overrides:
startDocument
in classorg.xml.sax.helpers.DefaultHandler
-
startElement
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
- Specified by:
startElement
in interfaceorg.xml.sax.ContentHandler
- Overrides:
startElement
in classorg.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
-
characters
public void characters(char[] ch, int start, int length)
- Specified by:
characters
in interfaceorg.xml.sax.ContentHandler
- Overrides:
characters
in classorg.xml.sax.helpers.DefaultHandler
-
endElement
public void endElement(java.lang.String namespaceURI, java.lang.String qName, java.lang.String rqName)
- Specified by:
endElement
in interfaceorg.xml.sax.ContentHandler
- Overrides:
endElement
in classorg.xml.sax.helpers.DefaultHandler
-
intern
private ImageryInfo.ImageryBounds intern(ImageryInfo.ImageryBounds imageryBounds)
-
tryParseInt
private java.util.Optional<java.lang.Integer> tryParseInt()
-
-