Package com.jme3.scene.plugins.ogre
Class MeshLoader
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.jme3.scene.plugins.ogre.MeshLoader
- All Implemented Interfaces:
AssetLoader
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Direct Known Subclasses:
SceneMeshLoader
Loads Ogre3D mesh.xml files.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
void
endElement
(String uri, String name, String qName) Loads asset from the given input stream, parsing it into an application-usable object.void
void
startElement
(String uri, String localName, String qName, Attributes attribs) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
AUTO_INTERLEAVE
public static boolean AUTO_INTERLEAVE
-
-
Constructor Details
-
MeshLoader
public MeshLoader()
-
-
Method Details
-
startDocument
public void startDocument()- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
-
endDocument
public void endDocument()- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attribs) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
characters
public void characters(char[] ch, int start, int length) - Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
load
Description copied from interface:AssetLoader
Loads asset from the given input stream, parsing it into an application-usable object.- Specified by:
load
in interfaceAssetLoader
- Parameters:
info
- the located asset- Returns:
- An object representing the resource.
- Throws:
IOException
- If an I/O error occurs while loading
-