kr.co.hit.live.web.mapper
Class MapParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
kr.co.hit.live.web.mapper.MapParser
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class MapParser
- extends org.xml.sax.helpers.DefaultHandler
Submission Map 파일(XML)을 파싱하여 Submit 객체를 생성한다.
다중쓰레드를 지원하지 않으므로 매번 MapParser 객체를 생성하여 사용해야 한다.
- Since:
- 4.0
- Author:
- 김형도
| 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 |
MapParser
public MapParser()
parse
public Submit parse(File mapFile,
String id)
throws SAXException
- File 객체로 주어진 Map 파일을 파싱하여 Submit 객체를 생성한다.
- Parameters:
mapFile -
- Returns:
-
- Throws:
SAXException
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument in interface ContentHandler- Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument in interface ContentHandler- Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
startElement
public void startElement(String namespaceURI,
String sName,
String qName,
Attributes attrs)
throws SAXException
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String namespaceURI,
String sName,
String qName)
throws SAXException
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
characters
public void characters(char[] buf,
int offset,
int len)
throws SAXException
- Specified by:
characters in interface ContentHandler- Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
Copyright © 2014. All Rights Reserved.