1 48 49 package com.caucho.hessian.io; 50 51 import java.io.IOException ; 52 import java.io.InputStream ; 53 import java.io.Reader ; 54 55 68 abstract public class AbstractHessianInput { 69 private HessianRemoteResolver resolver; 70 71 74 public void init(InputStream is) 75 { 76 } 77 78 81 abstract public String getMethod(); 82 83 86 public void setRemoteResolver(HessianRemoteResolver resolver) 87 { 88 this.resolver = resolver; 89 } 90 91 94 public HessianRemoteResolver getRemoteResolver() 95 { 96 return resolver; 97 } 98 99 102 public void setSerializerFactory(SerializerFactory ser) 103 { 104 } 105 106 113 abstract public int readCall() 114 throws IOException ; 115 116 123 abstract public String readHeader() 124 throws IOException ; 125 126 135 abstract public String readMethod() 136 throws IOException ; 137 138 148 abstract public void startCall() 149 throws IOException ; 150 151 160 abstract public void completeCall() 161 throws IOException ; 162 163 167 abstract public Object readReply(Class expectedClass) 168 throws Throwable ; 169 170 180 abstract public void startReply() 181 throws Throwable ; 182 183 192 abstract public void completeReply() 193 throws IOException ; 194 195 203 abstract public boolean readBoolean() 204 throws IOException ; 205 206 213 abstract public void readNull() 214 throws IOException ; 215 216 223 abstract public int readInt() 224 throws IOException ; 225 226 233 abstract public long readLong() 234 throws IOException ; 235 236 243 abstract public double readDouble() 244 throws IOException ; 245 246 253 abstract public long readUTCDate() 254 throws IOException ; 255 256 264 abstract public String readString() 265 throws IOException ; 266 267 275 abstract public org.w3c.dom.Node readNode() 276 throws IOException ; 277 278 288 abstract public Reader getReader() 289 throws IOException ; 290 291 300 abstract public InputStream readInputStream() 301 throws IOException ; 302 303 311 abstract public byte []readBytes() 312 throws IOException ; 313 314 319 abstract public Object readObject(Class expectedClass) 320 throws IOException ; 321 322 325 abstract public Object readObject() 326 throws IOException ; 327 328 336 abstract public Object readRemote() 337 throws IOException ; 338 339 346 abstract public Object readRef() 347 throws IOException ; 348 349 352 abstract public int addRef(Object obj) 353 throws IOException ; 354 355 358 abstract public void setRef(int i, Object obj) 359 throws IOException ; 360 361 364 abstract public int readListStart() 365 throws IOException ; 366 367 370 abstract public int readLength() 371 throws IOException ; 372 373 376 abstract public int readMapStart() 377 throws IOException ; 378 379 382 abstract public String readType() 383 throws IOException ; 384 385 388 abstract public boolean isEnd() 389 throws IOException ; 390 391 394 abstract public void readEnd() 395 throws IOException ; 396 397 400 abstract public void readMapEnd() 401 throws IOException ; 402 403 406 abstract public void readListEnd() 407 throws IOException ; 408 } 409 | Popular Tags |