PrintGame
Class GameXMLContentHandler

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byPrintGame.GameXMLContentHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class GameXMLContentHandler
extends org.xml.sax.helpers.DefaultHandler


Constructor Summary
GameXMLContentHandler()
           
 
Method Summary
 void characters(char[] charArray, int start, int length)
          ----------------------------------------------------------------------------- Receive notification of character data inside an element.
 void endDocument()
          ----------------------------------------------------------------------------- Receive notification of the end of the document.
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qualName)
          ----------------------------------------------------------------------------- Receive notification of the end of an element.
 java.lang.String getDiamondPicture()
           
 java.lang.String getFile(int number)
           
 int getNumLevels()
           
 java.lang.String getRobotPicture()
           
 java.lang.String getStartPicture()
           
 java.lang.String getWallPicture()
           
 java.lang.String getWayPicture()
           
 void setDocumentBase(java.net.URL document_base)
           
 void startDocument()
          ----------------------------------------------------------------------------- Receive notification of the beginning of the document.
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qualName, org.xml.sax.Attributes attribs)
          ----------------------------------------------------------------------------- Receive notification of the start of an element.
 
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
 

Constructor Detail

GameXMLContentHandler

public GameXMLContentHandler()
Method Detail

setDocumentBase

public void setDocumentBase(java.net.URL document_base)

startDocument

public void startDocument()
----------------------------------------------------------------------------- Receive notification of the beginning of the document.


startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qualName,
                         org.xml.sax.Attributes attribs)
----------------------------------------------------------------------------- Receive notification of the start of an element.

Parameters:
localName - - The local name (without prefix), or the empty string if Namespace processing is not being performed.
qualName - - The qualified name (with prefix), or the empty string if qualified names are not available.

characters

public void characters(char[] charArray,
                       int start,
                       int length)
----------------------------------------------------------------------------- Receive notification of character data inside an element.

Parameters:
charArray - - The characters.
start - - The start position in the character array.
length - - The number of characters to use from the character array.

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qualName)
----------------------------------------------------------------------------- Receive notification of the end of an element.

Parameters:
localName - - The local name (without prefix), or the empty string if Namespace processing is not being performed.

endDocument

public void endDocument()
----------------------------------------------------------------------------- Receive notification of the end of the document.


getWallPicture

public java.lang.String getWallPicture()

getWayPicture

public java.lang.String getWayPicture()

getRobotPicture

public java.lang.String getRobotPicture()

getDiamondPicture

public java.lang.String getDiamondPicture()

getStartPicture

public java.lang.String getStartPicture()

getNumLevels

public int getNumLevels()

getFile

public java.lang.String getFile(int number)