1 28 29 package org.jibx.runtime; 30 31 import java.io.IOException ; 32 33 42 43 public interface IXMLWriter 44 { 45 56 57 public void setIndentSpaces(int count, String newline, char indent); 58 59 70 71 public void writeXMLDecl(String version, String encoding, String standalone) 72 throws IOException ; 73 74 83 84 public void startTagOpen(int index, String name) throws IOException ; 85 86 101 102 public void startTagNamespaces(int index, String name, 103 int[] nums, String [] prefs) throws IOException ; 104 105 115 116 public void addAttribute(int index, String name, String value) 117 throws IOException ; 118 119 125 126 public void closeStartTag() throws IOException ; 127 128 134 135 public void closeEmptyTag() throws IOException ; 136 137 145 146 public void startTagClosed(int index, String name) throws IOException ; 147 148 155 156 public void endTag(int index, String name) throws IOException ; 157 158 164 165 public void writeTextContent(String text) throws IOException ; 166 167 173 174 public void writeCData(String text) throws IOException ; 175 176 182 183 public void writeComment(String text) throws IOException ; 184 185 191 192 public void writeEntityRef(String name) throws IOException ; 193 194 204 205 public void writeDocType(String name, String sys, String pub, String subset) 206 throws IOException ; 207 208 215 216 public void writePI(String target, String data) throws IOException ; 217 218 223 224 public void closeNamespaces(); 225 226 236 237 public void indent() throws IOException ; 238 239 245 246 public void close() throws IOException ; 247 248 253 254 public void reset(); 255 256 265 266 public String [] getNamespaces(); 267 268 275 276 public String getNamespaceUri(int index); 277 278 285 286 public String getNamespacePrefix(int index); 287 288 296 297 public int getPrefixIndex(String prefix); 298 299 304 305 public void pushExtensionNamespaces(String [] uris); 306 307 311 312 public void popExtensionNamespaces(); 313 314 322 323 public String [][] getExtensionNamespaces(); 324 } 325 | Popular Tags |