JavaTM Platform
Standard Ed. 6

클래스
org.xml.sax.SAXException 의 사용

SAXException 를 사용하고 있는 패키지
javax.xml.bind.helpers JAXB 프로바이더만이 사용합니다.  
javax.xml.parsers XML 문서의 처리를 가능하게 하는 클래스를 제공합니다.  
javax.xml.validation 이 패키지는, XML 문서의 검증하기 위한 API 를 제공합니다.  
org.xml.sax 이 패키지는 코어 SAX API 를 제공합니다.  
org.xml.sax.ext 이 패키지에는, 적합하는 SAX 드라이버에서는 반드시 지원되지 않는 SAX2 기능의 인터페이스가 포함됩니다.  
org.xml.sax.helpers 이 패키지는, SAX 베이스의 어플리케이션을 bootstrap하기 위한 지원를 포함한 「헬퍼」클래스를 포함합니다.  
 

javax.xml.bind.helpers 에서의 SAXException 의 사용
 

SAXException 형의 파라미터를 가지는 javax.xml.bind.helpers 의 메소드
protected  UnmarshalException AbstractUnmarshallerImpl. createUnmarshalException (SAXException  e)
          SAXException 로부터 UnmarshalException 를 작성합니다.
 

javax.xml.parsers 에서의 SAXException 의 사용
 

SAXException 를 throw 하는 javax.xml.parsers 의 메소드
abstract  Parser SAXParser. getParser ()
          이 클래스의 구현에 의해 캡슐화되는 SAX 퍼서를 돌려줍니다.
abstract  XMLReader SAXParser. getXMLReader ()
          이 클래스의 구현에 의해 캡슐화되는 XMLReader 를 돌려줍니다.
abstract  SAXParser SAXParserFactory. newSAXParser ()
          현재 설정되어 있는 팩토리 파라미터를 사용해 SAXParser 의 새로운 인스턴스를 작성합니다.
 Document DocumentBuilder. parse (File  f)
          지정된 파일의 내용을 XML 문서로서 구문 분석 해, 새로운 DOM Document 객체를 돌려줍니다.
 void SAXParser. parse (File  f, DefaultHandler  dh)
          지정된 파일의 컨텐츠를, 지정된 DefaultHandler 를 사용해 XML 로서 구문 분석 합니다.
 void SAXParser. parse (File  f, HandlerBase  hb)
          지정된 파일의 컨텐츠를, 지정된 HandlerBase 를 사용해 XML 로서 구문 분석 합니다.
abstract  Document DocumentBuilder. parse (InputSource  is)
          지정된 입력 소스의 내용을 XML 문서로서 구문 분석 해, 새로운 DOM Document 객체를 돌려줍니다.
 void SAXParser. parse (InputSource  is, DefaultHandler  dh)
          지정된 InputSource 의 컨텐츠를, 지정된 DefaultHandler 를 사용해 XML 로서 구문 분석 합니다.
 void SAXParser. parse (InputSource  is, HandlerBase  hb)
          지정된 InputSource 의 컨텐츠를, 지정된 HandlerBase 를 사용해 XML 로서 구문 분석 합니다.
 Document DocumentBuilder. parse (InputStream  is)
          지정된 InputStream 의 내용을 XML 문서로서 구문 분석 해, 새로운 DOM Document 객체를 돌려줍니다.
 void SAXParser. parse (InputStream  is, DefaultHandler  dh)
          지정된 InputStream 인스턴스의 컨텐츠를, 지정된 DefaultHandler 를 사용해 XML 로서 구문 분석 합니다.
 void SAXParser. parse (InputStream  is, DefaultHandler  dh, String  systemId)
          지정된 InputStream 인스턴스의 컨텐츠를, 지정된 DefaultHandler 를 사용해 XML 로서 구문 분석 합니다.
 void SAXParser. parse (InputStream  is, HandlerBase  hb)
          지정된 InputStream 인스턴스의 컨텐츠를, 지정된 HandlerBase 를 사용해 XML 로서 구문 분석 합니다.
 void SAXParser. parse (InputStream  is, HandlerBase  hb, String  systemId)
          지정된 InputStream 인스턴스의 컨텐츠를, 지정된 HandlerBase 를 사용해 XML 로서 구문 분석 합니다.
 Document DocumentBuilder. parse (InputStream  is, String  systemId)
          지정된 InputStream 의 내용을 XML 문서로서 구문 분석 해, 새로운 DOM Document 객체를 돌려줍니다.
 Document DocumentBuilder. parse (String  uri)
          지정된 URI 의 내용을 XML 문서로서 해석해, 새로운 DOM Document 객체를 돌려줍니다.
 void SAXParser. parse (String  uri, DefaultHandler  dh)
          지정된 URI (Uniform Resource Identifier)로 표현된 컨텐츠를, 지정된 DefaultHandler 를 사용해 XML 로서 구문 분석 합니다.
 void SAXParser. parse (String  uri, HandlerBase  hb)
          지정된 URI (Uniform Resource Identifier)로 표현된 컨텐츠를, 지정된 HandlerBase 를 사용해 XML 로서 구문 분석 합니다.
 

javax.xml.validation 에서의 SAXException 의 사용
 

SAXException 를 throw 하는 javax.xml.validation 의 메소드
abstract  Schema SchemaFactory. newSchema ()
          특수한 Schema 객체를 작성합니다.
 Schema SchemaFactory. newSchema (File  schema)
          지정된 File 를 schema로서 구문 분석 해, 그것을 Schema 로서 돌려줍니다.
 Schema SchemaFactory. newSchema (Source  schema)
          지정된 소스를 schema로서 구문 분석 해, 그것을 schema로서 돌려줍니다.
abstract  Schema SchemaFactory. newSchema (Source [] schemas)
          지정된 소스를 schema로서 구문 분석 해, 그것을 schema로서 돌려줍니다.
 Schema SchemaFactory. newSchema (URL  schema)
          지정된 URL 를 schema로서 구문 분석 해, 그것을 Schema 로서 돌려줍니다.
 void Validator. validate (Source  source)
          지정된 입력을 검증합니다.
abstract  void Validator. validate (Source  source, Result  result)
          지정된 입력을 검증해, 추가된 검증 결과가 지정된 출력에 보냅니다.
 

org.xml.sax 에서의 SAXException 의 사용
 

org.xml.sax 에서의 SAXException 의 서브 클래스
 class SAXNotRecognizedException
          인식되지 않는 식별자를 위한 예외 클래스입니다.
 class SAXNotSupportedException
          지원 대상외의 조작을 위한 예외 클래스입니다.
 class SAXParseException
          XML 구문 분석 에러 또는 경고를 캡슐화합니다.
 

SAXException 를 throw 하는 org.xml.sax 의 메소드
 void ContentHandler. characters (char[] ch, int start, int length)
          문자 데이터의 통지를 받습니다.
 void HandlerBase. characters (char[] ch, int start, int length)
          추천 되고 있지 않습니다.  요소내의 문자 데이터의 통지를 받습니다.
 void DocumentHandler. characters (char[] ch, int start, int length)
          추천 되고 있지 않습니다.  문자 데이터의 통지를 받습니다.
 void ContentHandler. endDocument ()
          문서의 종료 통지를 받습니다.
 void HandlerBase. endDocument ()
          추천 되고 있지 않습니다.  문서의 종료 통지를 받습니다.
 void DocumentHandler. endDocument ()
          추천 되고 있지 않습니다.  문서의 종료 통지를 받습니다.
 void HandlerBase. endElement (String  name)
          추천 되고 있지 않습니다.  요소의 종료 통지를 받습니다.
 void DocumentHandler. endElement (String  name)
          추천 되고 있지 않습니다.  요소의 종료 통지를 받습니다.
 void ContentHandler. endElement (String  uri, String  localName, String  qName)
          요소의 종료 통지를 받습니다.
 void ContentHandler. endPrefixMapping (String  prefix)
          전치수식자와 URI 의 매핑의 스코프를 종료합니다.
 void ErrorHandler. error (SAXParseException  exception)
          회복 가능한 에러의 통지를 받습니다.
 void HandlerBase. error (SAXParseException  e)
          추천 되고 있지 않습니다.  회복 가능한 퍼서 에러의 통지를 받습니다.
 void ErrorHandler. fatalError (SAXParseException  exception)
          회복할 수 없는 에러의 통지를 받습니다.
 void HandlerBase. fatalError (SAXParseException  e)
          추천 되고 있지 않습니다.  치명적인 XML 구문 분석 에러를 보고합니다.
 void ContentHandler. ignorableWhitespace (char[] ch, int start, int length)
          요소 컨텐츠에 포함되는 무시할 수 있는 공백 문자의 통지를 받습니다.
 void HandlerBase. ignorableWhitespace (char[] ch, int start, int length)
          추천 되고 있지 않습니다.  요소 컨텐츠에 포함되는 무시할 수 있는 공백 문자의 통지를 받습니다.
 void DocumentHandler. ignorableWhitespace (char[] ch, int start, int length)
          추천 되고 있지 않습니다.  요소 컨텐츠에 포함되는 무시할 수 있는 공백 문자의 통지를 받습니다.
 void DTDHandler. notationDecl (String  name, String  publicId, String  systemId)
          표기법선언 이벤트의 통지를 받습니다.
 void XMLReader. parse (InputSource  input)
          XML 문서를 구문 분석 합니다.
 void Parser. parse (InputSource  source)
          추천 되고 있지 않습니다.  XML 문서를 구문 분석 합니다.
 void XMLReader. parse (String  systemId)
          시스템 식별자 (URI)로부터 XML 문서를 구문 분석 합니다.
 void Parser. parse (String  systemId)
          추천 되고 있지 않습니다.  시스템 식별자 (URI)로부터 XML 문서를 구문 분석 합니다.
 void ContentHandler. processingInstruction (String  target, String  data)
          처리 명령의 통지를 받습니다.
 void HandlerBase. processingInstruction (String  target, String  data)
          추천 되고 있지 않습니다.  처리 명령의 통지를 받습니다.
 void DocumentHandler. processingInstruction (String  target, String  data)
          추천 되고 있지 않습니다.  처리 명령의 통지를 받습니다.
 InputSource EntityResolver. resolveEntity (String  publicId, String  systemId)
          어플리케이션이 외부 엔티티를 해결할 수 있도록(듯이) 합니다.
 InputSource HandlerBase. resolveEntity (String  publicId, String  systemId)
          추천 되고 있지 않습니다.  외부 엔티티를 해결합니다.
 void Parser. setLocale (Locale  locale)
          추천 되고 있지 않습니다.  어플리케이션에 에러나 경고의 로케일의 요구를 허가합니다.
 void ContentHandler. skippedEntity (String  name)
          스킵 된 엔티티의 통지를 받습니다.
 void ContentHandler. startDocument ()
          문서의 개시 통지를 받습니다.
 void HandlerBase. startDocument ()
          추천 되고 있지 않습니다.  문서의 개시 통지를 받습니다.
 void DocumentHandler. startDocument ()
          추천 되고 있지 않습니다.  문서의 개시 통지를 받습니다.
 void HandlerBase. startElement (String  name, AttributeList  attributes)
          추천 되고 있지 않습니다.  요소의 개시 통지를 받습니다.
 void DocumentHandler. startElement (String  name, AttributeList  atts)
          추천 되고 있지 않습니다.  요소의 개시 통지를 받습니다.
 void ContentHandler. startElement (String  uri, String  localName, String  qName, Attributes  atts)
          요소의 개시 통지를 받습니다.
 void ContentHandler. startPrefixMapping (String  prefix, String  uri)
          전치수식자와 URI 이름 공간 매핑의 스코프를 개시합니다.
 void DTDHandler. unparsedEntityDecl (String  name, String  publicId, String  systemId, String  notationName)
          해석 대상외 엔티티 선언 이벤트의 통지를 받습니다.
 void ErrorHandler. warning (SAXParseException  exception)
          경고의 통지를 받습니다.
 void HandlerBase. warning (SAXParseException  e)
          추천 되고 있지 않습니다.  퍼서 경고의 통지를 받습니다.
 

org.xml.sax.ext 에서의 SAXException 의 사용
 

SAXException 를 throw 하는 org.xml.sax.ext 의 메소드
 void DefaultHandler2. attributeDecl (String  eName, String  aName, String  type, String  mode, String  value)
           
 void DeclHandler. attributeDecl (String  eName, String  aName, String  type, String  mode, String  value)
          속성형 선언을 보고합니다.
 void LexicalHandler. comment (char[] ch, int start, int length)
          문서내의 임의의 위치에 있는 XML 코멘트를 보고합니다.
 void DefaultHandler2. comment (char[] ch, int start, int length)
           
 void DefaultHandler2. elementDecl (String  name, String  model)
           
 void DeclHandler. elementDecl (String  name, String  model)
          요소형 선언을 보고합니다.
 void LexicalHandler. endCDATA ()
          CDATA 섹션의 마지막을 보고합니다.
 void DefaultHandler2. endCDATA ()
           
 void LexicalHandler. endDTD ()
          DTD 선언의 마지막을 보고합니다.
 void DefaultHandler2. endDTD ()
           
 void LexicalHandler. endEntity (String  name)
          엔티티의 마지막을 보고합니다.
 void DefaultHandler2. endEntity (String  name)
           
 void DefaultHandler2. externalEntityDecl (String  name, String  publicId, String  systemId)
           
 void DeclHandler. externalEntityDecl (String  name, String  publicId, String  systemId)
          구문 분석 끝난 외부 엔티티 선언을 보고합니다.
 InputSource EntityResolver2. getExternalSubset (String  name, String  baseURI)
          어플리케이션은, 명확하게 정의하고 있지 않는 문서의 외부 부분집합을 제공할 수 있습니다.
 InputSource DefaultHandler2. getExternalSubset (String  name, String  baseURI)
          외부 부분집합이 문서 텍스트에 선언되지 않았던 경우, 아무것도 사용되지 않는 것을 퍼서에게 통지합니다.
 void DefaultHandler2. internalEntityDecl (String  name, String  value)
           
 void DeclHandler. internalEntityDecl (String  name, String  value)
          내부 엔티티 선언을 보고합니다.
 InputSource DefaultHandler2. resolveEntity (String  publicId, String  systemId)
          null 의 엔티티명과 베이스 URI 를 사용해 EntityResolver2.resolveEntity() 를 호출합니다.
 InputSource EntityResolver2. resolveEntity (String  name, String  publicId, String  baseURI, String  systemId)
          어플리케이션은 외부 엔티티 참조를 입력 소스에 매핑 하는지, 일반적인 URI 해결을 사용하도록(듯이) 퍼서에게 통지할 수 있습니다.
 InputSource DefaultHandler2. resolveEntity (String  name, String  publicId, String  baseURI, String  systemId)
          기저 URI 에 대해서 systemId 를 해석 처리해 결과가 절대 URI 가 된 엔티티테키스트를 읽어내도록(듯이) 퍼서에게 통지합니다.
 void LexicalHandler. startCDATA ()
          CDATA 섹션의 개시를 보고합니다.
 void DefaultHandler2. startCDATA ()
           
 void LexicalHandler. startDTD (String  name, String  publicId, String  systemId)
          DTD 선언이 있는 경우, 그 개시를 보고합니다.
 void DefaultHandler2. startDTD (String  name, String  publicId, String  systemId)
           
 void LexicalHandler. startEntity (String  name)
          내부 및 외부의 XML 엔티티의 일부의 개시를 보고합니다.
 void DefaultHandler2. startEntity (String  name)
           
 

org.xml.sax.helpers 에서의 SAXException 의 사용
 

SAXException 를 throw 하는 org.xml.sax.helpers 의 메소드
 void DefaultHandler. characters (char[] ch, int start, int length)
          요소내의 문자 데이터의 통지를 받습니다.
 void XMLReaderAdapter. characters (char[] ch, int start, int length)
          SAX2 의 문자 이벤트를 적응시킵니다.
 void XMLFilterImpl. characters (char[] ch, int start, int length)
          문자 데이터 이벤트를 필터링 합니다.
 void ParserAdapter. characters (char[] ch, int start, int length)
          어댑터 구현 메소드는 호출하지 않습니다.
static XMLReader XMLReaderFactory. createXMLReader ()
          시스템 디폴트로부터 XMLReader 의 생성을 시도합니다.
static XMLReader XMLReaderFactory. createXMLReader (String  className)
          클래스명으로부터 XML 리더의 생성을 시도합니다.
 void DefaultHandler. endDocument ()
          문서의 종료 통지를 받습니다.
 void XMLReaderAdapter. endDocument ()
          문서 이벤트를 종료합니다.
 void XMLFilterImpl. endDocument ()
          문서 종료 이벤트를 필터링 합니다.
 void ParserAdapter. endDocument ()
          어댑터 구현 메소드는 호출하지 않습니다.
 void ParserAdapter. endElement (String  qName)
          어댑터 구현 메소드는 호출하지 않습니다.
 void DefaultHandler. endElement (String  uri, String  localName, String  qName)
          요소의 종료 통지를 받습니다.
 void XMLReaderAdapter. endElement (String  uri, String  localName, String  qName)
          SAX2 의 요소 종료 이벤트를 적응시킵니다.
 void XMLFilterImpl. endElement (String  uri, String  localName, String  qName)
          요소 종료 이벤트를 필터링 합니다.
 void DefaultHandler. endPrefixMapping (String  prefix)
          이름 공간 매핑의 종료 통지를 받습니다.
 void XMLFilterImpl. endPrefixMapping (String  prefix)
          이름 공간앞치수식자 매핑의 종료 이벤트를 필터링 합니다.
 void DefaultHandler. error (SAXParseException  e)
          회복 가능한 퍼서 에러의 통지를 받습니다.
 void XMLFilterImpl. error (SAXParseException  e)
          에러 이벤트를 필터링 합니다.
 void DefaultHandler. fatalError (SAXParseException  e)
          치명적인 XML 구문 분석 에러를 보고합니다.
 void XMLFilterImpl. fatalError (SAXParseException  e)
          치명적인 에러 이벤트를 필터링 합니다.
 void DefaultHandler. ignorableWhitespace (char[] ch, int start, int length)
          요소 컨텐츠에 포함되는 무시할 수 있는 공백 문자의 통지를 받습니다.
 void XMLReaderAdapter. ignorableWhitespace (char[] ch, int start, int length)
          SAX2 의 무시할 수 있는 공백 문자 이벤트를 적응시킵니다.
 void XMLFilterImpl. ignorableWhitespace (char[] ch, int start, int length)
          무시할 수 있는 공백류 문자 이벤트를 필터링 합니다.
 void ParserAdapter. ignorableWhitespace (char[] ch, int start, int length)
          어댑터 구현 메소드는 호출하지 않습니다.
 void DefaultHandler. notationDecl (String  name, String  publicId, String  systemId)
          표기법선언의 통지를 받습니다.
 void XMLFilterImpl. notationDecl (String  name, String  publicId, String  systemId)
          표기법선언 이벤트를 필터링 합니다.
 void XMLReaderAdapter. parse (InputSource  input)
          문서를 구문 분석 합니다.
 void XMLFilterImpl. parse (InputSource  input)
          문서를 구문 분석 합니다.
 void ParserAdapter. parse (InputSource  input)
          XML 문서를 구문 분석 합니다.
 void XMLReaderAdapter. parse (String  systemId)
          문서를 구문 분석 합니다.
 void XMLFilterImpl. parse (String  systemId)
          문서를 구문 분석 합니다.
 void ParserAdapter. parse (String  systemId)
          XML 문서를 구문 분석 합니다.
 void DefaultHandler. processingInstruction (String  target, String  data)
          처리 명령의 통지를 받습니다.
 void XMLReaderAdapter. processingInstruction (String  target, String  data)
          SAX2 의 처리 명령 이벤트를 적응시킵니다.
 void XMLFilterImpl. processingInstruction (String  target, String  data)
          처리 명령 이벤트를 필터링 합니다.
 void ParserAdapter. processingInstruction (String  target, String  data)
          어댑터 구현 메소드는 호출하지 않습니다.
 InputSource DefaultHandler. resolveEntity (String  publicId, String  systemId)
          외부 엔티티를 해결합니다.
 InputSource XMLFilterImpl. resolveEntity (String  publicId, String  systemId)
          외부 엔티티 해결을 필터링 합니다.
 void XMLReaderAdapter. setLocale (Locale  locale)
          에러 보고를 위한 로케일을 설정합니다.
 void DefaultHandler. skippedEntity (String  name)
          스킵 된 엔티티의 통지를 받습니다.
 void XMLReaderAdapter. skippedEntity (String  name)
          SAX2 의 스킵 된 엔티티이벤트를 적응시킵니다.
 void XMLFilterImpl. skippedEntity (String  name)
          스킵 된 엔티티이벤트를 필터링 합니다.
 void DefaultHandler. startDocument ()
          문서의 개시 통지를 받습니다.
 void XMLReaderAdapter. startDocument ()
          문서 이벤트를 개시합니다.
 void XMLFilterImpl. startDocument ()
          문서 개시 이벤트를 필터링 합니다.
 void ParserAdapter. startDocument ()
          어댑터 구현 메소드는 호출하지 않습니다.
 void ParserAdapter. startElement (String  qName, AttributeList  qAtts)
          어댑터 구현 메소드는 호출하지 않습니다.
 void DefaultHandler. startElement (String  uri, String  localName, String  qName, Attributes  attributes)
          요소의 개시 통지를 받습니다.
 void XMLReaderAdapter. startElement (String  uri, String  localName, String  qName, Attributes  atts)
          SAX2 의 요소 개시 이벤트를 적응시킵니다.
 void XMLFilterImpl. startElement (String  uri, String  localName, String  qName, Attributes  atts)
          요소 개시 이벤트를 필터링 합니다.
 void DefaultHandler. startPrefixMapping (String  prefix, String  uri)
          이름 공간 매핑의 개시 통지를 받습니다.
 void XMLFilterImpl. startPrefixMapping (String  prefix, String  uri)
          이름 공간앞치수식자 매핑의 개시 이벤트를 필터링 합니다.
 void DefaultHandler. unparsedEntityDecl (String  name, String  publicId, String  systemId, String  notationName)
          해석 대상외 엔티티 선언의 통지를 받습니다.
 void XMLFilterImpl. unparsedEntityDecl (String  name, String  publicId, String  systemId, String  notationName)
          해석 대상외 엔티티 선언 이벤트를 필터링 합니다.
 void DefaultHandler. warning (SAXParseException  e)
          퍼서 경고의 통지를 받습니다.
 void XMLFilterImpl. warning (SAXParseException  e)
          경고 이벤트를 필터링 합니다.
 

SAXException 를 throw 하는 org.xml.sax.helpers 의 생성자
ParserAdapter ()
          새로운 퍼서 어댑터를 구축합니다.
XMLReaderAdapter ()
          새로운 어댑터를 작성합니다.
 


JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.