public class ColladaFloatArray extends ColladaAbstractObject
Modifier and Type | Field and Description |
---|---|
protected float[] |
floats
Floats parsed from this element.
|
CHARACTERS_CONTENT, fields, namespaceURI, parent
Constructor and Description |
---|
ColladaFloatArray(String ns)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
float[] |
getFloats()
Indicates the float array contained in this element.
|
Object |
parse(XMLEventParserContext ctx,
XMLEvent event,
Object... args)
Parse the event and initialize the parser's values to those found in the event.
|
protected float[] |
parseFloats(String floatArrayString)
Parse a string of floats into an array.
|
getLocalExtent, getRoot
allocate, doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, doParseEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parseCharacterContent, removeField, setField, setField, setFields, setNamespaceURI, setParent
public ColladaFloatArray(String ns)
ns
- the qualifying namespace URI. May be null to indicate no namespace qualification.public float[] getFloats()
public Object parse(XMLEventParserContext ctx, XMLEvent event, Object... args) throws XMLStreamException
parse
in interface XMLEventParser
parse
in class AbstractXMLEventParser
ctx
- a current parser context.event
- the event to parse.args
- an optional list of arguments that may by used by subclasses.this
, otherwise returns null.XMLStreamException
- if an exception occurs during event-stream reading.protected float[] parseFloats(String floatArrayString)
floatArrayString
- String of floats separated by whitespace.