1 package org.xmlpull.v1; 2 3 import java.io.IOException ; 4 import java.io.OutputStream ; 5 import java.io.Writer ; 6 7 34 35 public interface XmlSerializer { 36 37 48 public void setFeature(String name, 49 boolean state) 50 throws IllegalArgumentException , IllegalStateException ; 51 52 53 61 public boolean getFeature(String name); 62 63 64 76 public void setProperty(String name, 77 Object value) 78 throws IllegalArgumentException , IllegalStateException ; 79 80 89 public Object getProperty(String name); 90 91 92 95 public void setOutput (OutputStream os, String encoding) 96 throws IOException , IllegalArgumentException , IllegalStateException ; 97 98 102 public void setOutput (Writer writer) 103 throws IOException , IllegalArgumentException , IllegalStateException ; 104 105 110 public void startDocument (String encoding, Boolean standalone) 111 throws IOException , IllegalArgumentException , IllegalStateException ; 112 113 118 public void endDocument () 119 throws IOException , IllegalArgumentException , IllegalStateException ; 120 121 140 public void setPrefix (String prefix, String namespace) 141 throws IOException , IllegalArgumentException , IllegalStateException ; 142 143 155 public String getPrefix (String namespace, boolean generatePrefix) 156 throws IllegalArgumentException ; 157 158 175 public int getDepth(); 176 177 187 public String getNamespace (); 188 189 196 public String getName(); 197 198 210 public XmlSerializer startTag (String namespace, String name) 211 throws IOException , IllegalArgumentException , IllegalStateException ; 212 213 220 public XmlSerializer attribute (String namespace, String name, String value) 221 throws IOException , IllegalArgumentException , IllegalStateException ; 222 223 231 public XmlSerializer endTag (String namespace, String name) 232 throws IOException , IllegalArgumentException , IllegalStateException ; 233 234 237 public XmlSerializer text (String text) 238 throws IOException , IllegalArgumentException , IllegalStateException ; 239 240 243 public XmlSerializer text (char [] buf, int start, int len) 244 throws IOException , IllegalArgumentException , IllegalStateException ; 245 246 public void cdsect (String text) 247 throws IOException , IllegalArgumentException , IllegalStateException ; 248 public void entityRef (String text) throws IOException , 249 IllegalArgumentException , IllegalStateException ; 250 public void processingInstruction (String text) 251 throws IOException , IllegalArgumentException , IllegalStateException ; 252 public void comment (String text) 253 throws IOException , IllegalArgumentException , IllegalStateException ; 254 public void docdecl (String text) 255 throws IOException , IllegalArgumentException , IllegalStateException ; 256 public void ignorableWhitespace (String text) 257 throws IOException , IllegalArgumentException , IllegalStateException ; 258 259 269 public void flush () 270 throws IOException ; 271 272 } 273 274 | Popular Tags |