Javolution 6.0.0 java
|
Public Member Functions | |
XMLStreamReaderImpl | createXMLStreamReader (InputStream stream) throws XMLStreamException |
XMLStreamReaderImpl | createXMLStreamReader (InputStream stream, String encoding) throws XMLStreamException |
XMLStreamReaderImpl | createXMLStreamReader (Reader reader) throws XMLStreamException |
Object | getProperty (String name) throws IllegalArgumentException |
boolean | isPropertySupported (String name) |
void | setProperty (String name, Object value) throws IllegalArgumentException |
XMLInputFactory | clone () |
Static Public Attributes | |
static final String | IS_COALESCING = "javolution.xml.stream.isCoalescing" |
static final String | IS_VALIDATING = "javolution.xml.stream.isValidating" |
static final String | ENTITIES = "javolution.xml.stream.entities" |
Package Functions | |
void | recycle (XMLStreamReaderImpl reader) |
Private Member Functions | |
XMLStreamReaderImpl | newReader () |
Private Attributes | |
Map< String, String > | _entities = null |
FastTable< XMLStreamReaderImpl > | _recycled |
The default XML input factory implementation.
Definition at line 22 of file XMLInputFactoryImpl.java.
XMLInputFactory javolution.xml.internal.stream.XMLInputFactoryImpl.clone | ( | ) |
Returns a clone of this factory which can be independently configured.
Implements javolution.xml.stream.XMLInputFactory.
Definition at line 97 of file XMLInputFactoryImpl.java.
References javolution.xml.stream.XMLInputFactory.clone(), and javolution.util.FastTable< E >.shared().
XMLStreamReaderImpl javolution.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader | ( | InputStream | stream | ) | throws XMLStreamException |
Returns a XML stream reader for the specified input stream (encoding autodetected).
stream | the input stream to read from. |
XMLStreamException |
Implements javolution.xml.stream.XMLInputFactory.
Definition at line 28 of file XMLInputFactoryImpl.java.
References javolution.xml.internal.stream.XMLInputFactoryImpl.newReader(), and javolution.xml.internal.stream.XMLStreamReaderImpl.setInput().
XMLStreamReaderImpl javolution.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader | ( | InputStream | stream, |
String | encoding | ||
) | throws XMLStreamException |
Returns a XML stream reader for the specified input stream using the specified encoding.
stream | the input stream to read from. |
encoding | the character encoding of the stream. |
XMLStreamException |
Implements javolution.xml.stream.XMLInputFactory.
Definition at line 36 of file XMLInputFactoryImpl.java.
References javolution.xml.internal.stream.XMLInputFactoryImpl.newReader(), and javolution.xml.internal.stream.XMLStreamReaderImpl.setInput().
XMLStreamReaderImpl javolution.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader | ( | Reader | reader | ) | throws XMLStreamException |
Returns a XML stream reader for the specified I/O reader.
reader | the XML data to read from. |
XMLStreamException |
Implements javolution.xml.stream.XMLInputFactory.
Definition at line 44 of file XMLInputFactoryImpl.java.
References javolution.xml.internal.stream.XMLInputFactoryImpl.newReader(), and javolution.xml.internal.stream.XMLStreamReaderImpl.setInput().
Object javolution.xml.internal.stream.XMLInputFactoryImpl.getProperty | ( | String | name | ) | throws IllegalArgumentException |
Gets the value of a feature/property from the underlying implementation.
name | the name of the property (may not be null). |
IllegalArgumentException | if the property is not supported. |
Implements javolution.xml.stream.XMLInputFactory.
Definition at line 52 of file XMLInputFactoryImpl.java.
References javolution.xml.internal.stream.XMLInputFactoryImpl._entities, javolution.xml.stream.XMLInputFactory.ENTITIES, and javolution.xml.stream.XMLInputFactory.IS_COALESCING.
boolean javolution.xml.internal.stream.XMLInputFactoryImpl.isPropertySupported | ( | String | name | ) |
Queries the set of properties that this factory supports.
name | the name of the property. |
true
if the property is supported; false
otherwise. Implements javolution.xml.stream.XMLInputFactory.
Definition at line 64 of file XMLInputFactoryImpl.java.
References javolution.xml.stream.XMLInputFactory.ENTITIES, and javolution.xml.stream.XMLInputFactory.IS_COALESCING.
|
private |
Definition at line 87 of file XMLInputFactoryImpl.java.
References javolution.xml.internal.stream.XMLInputFactoryImpl._entities, javolution.xml.internal.stream.XMLInputFactoryImpl._recycled, and javolution.xml.internal.stream.XMLStreamReaderImpl.setEntities().
Referenced by javolution.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader().
|
package |
Recycles the specified instance.
Definition at line 83 of file XMLInputFactoryImpl.java.
References javolution.xml.internal.stream.XMLInputFactoryImpl._recycled.
Referenced by javolution.xml.internal.stream.XMLStreamReaderImpl.reset().
void javolution.xml.internal.stream.XMLInputFactoryImpl.setProperty | ( | String | name, |
Object | value | ||
) | throws IllegalArgumentException |
Allows the user to set specific feature/property on the underlying implementation. The underlying implementation is not required to support every setting of every property in the specification and may use IllegalArgumentException
to signal that an unsupported property may not be set with the specified value.
name | the name of the property. |
value | the value of the property |
IllegalArgumentException | if the property is not supported. |
Implements javolution.xml.stream.XMLInputFactory.
Definition at line 70 of file XMLInputFactoryImpl.java.
References javolution.xml.internal.stream.XMLInputFactoryImpl._entities, javolution.xml.stream.XMLInputFactory.ENTITIES, and javolution.xml.stream.XMLInputFactory.IS_COALESCING.
|
private |
|
private |
Definition at line 24 of file XMLInputFactoryImpl.java.
Referenced by javolution.xml.internal.stream.XMLInputFactoryImpl.newReader(), and javolution.xml.internal.stream.XMLInputFactoryImpl.recycle().
|
staticinherited |
Property used to specify additional entities to be recognized by the readers (type: java.util.Map
, default: null
). For example:[code] FastMap<String, String> HTML_ENTITIES = new FastMap<String, String>(); HTML_ENTITIES.put("nbsp", " "); HTML_ENTITIES.put("copy", "©"); HTML_ENTITIES.put("eacute", "é"); ... XMLInputFactory factory = factoryRef.getService(); factory.setProperty(ENTITIES, HTML_ENTITIES); [/code]
Definition at line 80 of file XMLInputFactory.java.
Referenced by javolution.xml.internal.stream.XMLInputFactoryImpl.getProperty(), javolution.xml.internal.stream.XMLStreamReaderImpl.getProperty(), javolution.xml.internal.stream.XMLInputFactoryImpl.isPropertySupported(), and javolution.xml.internal.stream.XMLInputFactoryImpl.setProperty().
|
staticinherited |
The property that requires the parser to coalesce adjacent character data sections.
Definition at line 60 of file XMLInputFactory.java.
Referenced by javolution.xml.internal.stream.XMLInputFactoryImpl.getProperty(), javolution.xml.internal.stream.XMLStreamReaderImpl.getProperty(), javolution.xml.internal.stream.XMLInputFactoryImpl.isPropertySupported(), and javolution.xml.internal.stream.XMLInputFactoryImpl.setProperty().
|
staticinherited |
The property that requires the parser to validate the input data.
Definition at line 65 of file XMLInputFactory.java.