Top Inners Fields Constructors Methods
org.codehaus.jettison.mapped

public Class MappedXMLInputFactory

extends AbstractXMLInputFactory
Class Inheritance
Imports
java.util.Map, javax.xml.stream.Location, .XMLStreamException, .XMLStreamReader, org.codehaus.jettison.AbstractXMLInputFactory, org.codehaus.jettison.json.JSONException, .JSONObject, .JSONTokener

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private MappedNamespaceConvention

Constructor Summary

AccessConstructor and Description
public
MappedXMLInputFactory(Map<K, V> nstojns)

public

Method Summary

Modifier and TypeMethod and Description
protected JSONObject
public XMLStreamReader
Inherited from org.codehaus.jettison.AbstractXMLInputFactory:
createFilteredReadercreateFilteredReadercreateNewJSONTokenercreateXMLEventReadercreateXMLEventReadercreateXMLEventReadercreateXMLEventReadercreateXMLEventReadercreateXMLEventReadercreateXMLEventReadercreateXMLStreamReadercreateXMLStreamReadercreateXMLStreamReadercreateXMLStreamReadercreateXMLStreamReadercreateXMLStreamReadergetEventAllocatorgetPropertygetXMLReportergetXMLResolverisPropertySupportedsetEventAllocatorsetPropertysetXMLReportersetXMLResolver

Field Detail

conventionback to summary
private MappedNamespaceConvention convention

Constructor Detail

MappedXMLInputFactoryback to summary
public MappedXMLInputFactory(Map<K, V> nstojns)
MappedXMLInputFactoryback to summary
public MappedXMLInputFactory(Configuration config)

Method Detail

createJSONObjectback to summary
protected JSONObject createJSONObject(JSONTokener tokener) throws JSONException
createXMLStreamReaderback to summary
public XMLStreamReader createXMLStreamReader(JSONTokener tokener) throws XMLStreamException

Implements abstract org.codehaus.jettison.AbstractXMLInputFactory.createXMLStreamReader.

org.codehaus.jettison.mapped back to summary

private Class MappedXMLInputFactory.ErrorLocation

extends Object
implements Location
Class Inheritance
  • java.lang.Object
  • org.codehaus.jettison.mapped.MappedXMLInputFactory.ErrorLocation
All Implemented Interfaces
javax.xml.stream.Location

Field Summary

Modifier and TypeField and Description
private int
private int

Constructor Summary

AccessConstructor and Description
public
ErrorLocation(int line, int column)

Method Summary

Modifier and TypeMethod and Description
public int
getCharacterOffset()

Implements javax.xml.stream.Location.getCharacterOffset.

Return the byte or character offset into the input source this location is pointing to.
public int
getColumnNumber()

Implements javax.xml.stream.Location.getColumnNumber.

Return the column number where the current event ends, returns -1 if none is available.
public int
getLineNumber()

Implements javax.xml.stream.Location.getLineNumber.

Return the line number where the current event ends, returns -1 if none is available.
public String
getPublicId()

Implements javax.xml.stream.Location.getPublicId.

Returns the public ID of the XML
public String
getSystemId()

Implements javax.xml.stream.Location.getSystemId.

Returns the system ID of the XML
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnback to summary
private int column
lineback to summary
private int line

Constructor Detail

ErrorLocationback to summary
public ErrorLocation(int line, int column)

Method Detail

getCharacterOffsetback to summary
public int getCharacterOffset()

Implements javax.xml.stream.Location.getCharacterOffset.

Doc from javax.xml.stream.Location.getCharacterOffset.

Return the byte or character offset into the input source this location is pointing to. If the input source is a file or a byte stream then this is the byte offset into that stream, but if the input source is a character media then the offset is the character offset. Returns -1 if there is no offset available.

Returns:int

the current offset

getColumnNumberback to summary
public int getColumnNumber()

Implements javax.xml.stream.Location.getColumnNumber.

Doc from javax.xml.stream.Location.getColumnNumber.

Return the column number where the current event ends, returns -1 if none is available.

Returns:int

the current column number

getLineNumberback to summary
public int getLineNumber()

Implements javax.xml.stream.Location.getLineNumber.

Doc from javax.xml.stream.Location.getLineNumber.

Return the line number where the current event ends, returns -1 if none is available.

Returns:int

the current line number

getPublicIdback to summary
public String getPublicId()

Implements javax.xml.stream.Location.getPublicId.

Doc from javax.xml.stream.Location.getPublicId.

Returns the public ID of the XML

Returns:String

the public ID, or null if not available

getSystemIdback to summary
public String getSystemId()

Implements javax.xml.stream.Location.getSystemId.

Doc from javax.xml.stream.Location.getSystemId.

Returns the system ID of the XML

Returns:String

the system ID, or null if not available