|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
public interface XMLEventAllocator
이 인터페이스는, 지정된 이벤트에 XMLStreamReader 를 할당하는 방법을 사용자가 등록할 수 있도록(듯이)하기 위한 클래스를 정의합니다. XMLEventFactory 구현을 사용하기 위한 구현은 필수가 아닙니다만, 그처럼 하는 것이 추천 되고 있습니다. XMLEventAllocator 는, javax.xml.stream.allocator 프로퍼티을 사용해 XMLInputFactory 로 설정할 수 있습니다.
XMLInputFactory
,
XMLEventFactory
메소드의 개요 | |
---|---|
XMLEvent |
allocate (XMLStreamReader reader)
이 메소드는, 지정된 이벤트에 XMLStreamReader 의 현재 상태를 할당합니다. |
void |
allocate (XMLStreamReader reader,
XMLEventConsumer consumer)
이 메소드는, 지정된 이벤트 또는 이벤트 세트에 XMLStreamReader 의 현재 상태를 할당해 건네받은 컨슈머(consumer)에게 그 이벤트 또는 이벤트 세트를 추가합니다. |
XMLEventAllocator |
newInstance ()
이 메소드는, XMLEventAllocator 의 인스턴스를 작성합니다. |
메소드의 상세 |
---|
XMLEventAllocator newInstance()
XMLEvent allocate(XMLStreamReader reader) throws XMLStreamException
reader
- 할당원의 XMLStreamReader
XMLStreamException
void allocate(XMLStreamReader reader, XMLEventConsumer consumer) throws XMLStreamException
reader
- 할당원의 XMLStreamReaderconsumer
- 추가처의 XMLEventConsumer
XMLStreamException
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.