1 29 30 package com.caucho.xml.stream.events; 31 32 import javax.xml.stream.XMLStreamException; 33 import javax.xml.stream.events.DTD; 34 import java.io.Writer ; 35 import java.util.List ; 36 37 public class DTDImpl extends XMLEventImpl implements DTD { 38 private final String _dtdTypeDecl; 39 private final List _entities = null; private final List _notations = null; private final Object _processedDTD = null; 43 public DTDImpl(String dtdTypeDecl) 44 { 45 _dtdTypeDecl = dtdTypeDecl; 46 } 47 48 public String getDocumentTypeDeclaration() 49 { 50 return _dtdTypeDecl; 51 } 52 53 public List getEntities() 54 { 55 throw new UnsupportedOperationException (); 56 } 57 58 public List getNotations() 59 { 60 throw new UnsupportedOperationException (); 61 } 62 63 public Object getProcessedDTD() 64 { 65 throw new UnsupportedOperationException (); 66 } 67 68 public int getEventType() 69 { 70 return DTD; 71 } 72 73 public void writeAsEncodedUnicode(Writer writer) 74 throws XMLStreamException 75 { 76 } 78 } 79 80 | Popular Tags |