1 28 29 package org.jibx.runtime; 30 31 import java.io.InputStream ; 32 import java.io.Reader ; 33 34 42 43 public interface IUnmarshallingContext { 44 45 53 54 void setDocument(InputStream ins, String enc) throws JiBXException; 55 56 62 63 void setDocument(Reader rdr) throws JiBXException; 64 65 74 75 void setDocument(InputStream ins, String name, String enc) 76 throws JiBXException; 77 78 85 86 void setDocument(Reader rdr, String name) throws JiBXException; 87 88 93 94 void reset(); 95 96 105 106 Object unmarshalElement() throws JiBXException; 107 108 119 120 Object unmarshalDocument(InputStream ins, String enc) throws JiBXException; 121 122 131 132 Object unmarshalDocument(Reader rdr) throws JiBXException; 133 134 146 147 Object unmarshalDocument(InputStream ins, String name, String enc) 148 throws JiBXException; 149 150 160 161 Object unmarshalDocument(Reader rdr, String name) throws JiBXException; 162 163 168 169 public String getDocumentName(); 170 171 183 184 public boolean isAt(String ns, String name) throws JiBXException; 185 186 195 196 public boolean isEnd() throws JiBXException; 197 198 206 207 public IUnmarshaller getUnmarshaller(int index) throws JiBXException; 208 209 216 217 public void pushObject(Object obj); 218 219 224 225 public void popObject() throws JiBXException; 226 227 235 236 public int getStackDepth(); 237 238 248 249 public Object getStackObject(int depth); 250 251 257 258 public Object getStackTop(); 259 } | Popular Tags |