1 28 29 package org.jibx.runtime; 30 31 import java.io.OutputStream ; 32 import java.io.Writer ; 33 34 42 43 public interface IMarshallingContext 44 { 45 56 57 void setOutput(OutputStream outs, String enc, ICharacterEscaper esc) 58 throws JiBXException; 59 60 68 69 void setOutput(OutputStream outs, String enc) throws JiBXException; 70 71 77 78 void setOutput(Writer outw, ICharacterEscaper esc); 79 80 85 86 void setOutput(Writer outw); 87 88 93 94 IXMLWriter getXmlWriter(); 95 96 101 102 void setXmlWriter(IXMLWriter xwrite); 103 104 111 112 int getIndent(); 113 114 122 123 void setIndent(int count); 124 125 136 137 public void setIndent(int count, String newline, char indent); 138 139 144 145 void reset(); 146 147 157 158 void startDocument(String enc, Boolean alone) throws JiBXException; 159 160 171 172 void startDocument(String enc, Boolean alone, OutputStream outs) 173 throws JiBXException; 174 175 185 186 void startDocument(String enc, Boolean alone, Writer outw) 187 throws JiBXException; 188 189 196 197 void endDocument() throws JiBXException; 198 199 210 211 public void marshalDocument(Object root) throws JiBXException; 212 213 227 228 public void marshalDocument(Object root, String enc, Boolean alone) 229 throws JiBXException; 230 231 245 246 public void marshalDocument(Object root, String enc, Boolean alone, 247 OutputStream outs) throws JiBXException; 248 249 263 264 public void marshalDocument(Object root, String enc, Boolean alone, 265 Writer outw) throws JiBXException; 266 267 274 275 public void pushObject(Object obj); 276 277 282 283 public void popObject() throws JiBXException; 284 285 293 294 public int getStackDepth(); 295 296 306 307 public Object getStackObject(int depth); 308 309 315 316 public Object getStackTop(); 317 318 328 329 public IMarshaller getMarshaller(int index, String name) 330 throws JiBXException; 331 } | Popular Tags |