Java Doc for AbstractHessianInput.java in  » Web-Services » hessian » com » caucho » hessian » io » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Services » hessian » com.caucho.hessian.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.hessian.io.AbstractHessianInput

All known Subclasses:   com.caucho.hessian.io.HessianInput,  com.caucho.hessian.io.Hessian2Input,  com.caucho.burlap.io.AbstractBurlapInput,
AbstractHessianInput
abstract public class AbstractHessianInput (Code)
Abstract base class for Hessian requests. Hessian users should only need to use the methods in this class.
 AbstractHessianInput in = ...; // get input
 String value;
 in.startReply();         // read reply header
 value = in.readString(); // read string value
 in.completeReply();      // read reply footer
 




Method Summary
abstract public  intaddRef(Object obj)
     Adds an object reference.
public  voidclose()
    
abstract public  voidcompleteCall()
    
abstract public  voidcompleteReply()
    
abstract public  StringgetMethod()
    
abstract public  ReadergetReader()
     Starts reading a string.
public  HessianRemoteResolvergetRemoteResolver()
     Sets the resolver used to lookup remote objects.
public  voidinit(InputStream is)
     Initialize the Hessian stream with the underlying input stream.
abstract public  booleanisEnd()
     Returns true if the data has ended.
abstract public  booleanreadBoolean()
    
abstract public  byte[]readBytes()
     Reads a byte array.
abstract public  intreadCall()
    
abstract public  doublereadDouble()
     Reads a double.
abstract public  voidreadEnd()
    
abstract public  StringreadHeader()
     Reads a header, returning null if there are no headers.
abstract public  InputStreamreadInputStream()
     Starts reading a byte array using an input stream.
abstract public  intreadInt()
    
abstract public  intreadLength()
     Reads the length of a list.
abstract public  voidreadListEnd()
    
abstract public  intreadListStart()
    
abstract public  longreadLong()
    
abstract public  voidreadMapEnd()
    
abstract public  intreadMapStart()
    
abstract public  StringreadMethod()
    
abstract public  org.w3c.dom.NodereadNode()
    
abstract public  voidreadNull()
    
abstract public  ObjectreadObject(Class expectedClass)
     Reads an arbitrary object from the input stream.
abstract public  ObjectreadObject()
     Reads an arbitrary object from the input stream.
abstract public  ObjectreadRef()
    
abstract public  ObjectreadRemote()
     Reads a remote object reference to the stream.
abstract public  ObjectreadReply(Class expectedClass)
     Reads a reply as an object.
abstract public  StringreadString()
    
abstract public  StringreadType()
     Reads an object type.
abstract public  longreadUTCDate()
     Reads a date.
public  voidresetReferences()
     Resets the references for streaming.
abstract public  voidsetRef(int i, Object obj)
     Sets an object reference.
public  voidsetRemoteResolver(HessianRemoteResolver resolver)
     Sets the resolver used to lookup remote objects.
public  voidsetSerializerFactory(SerializerFactory ser)
     Sets the serializer factory.
public  voidskipOptionalCall()
    
abstract public  voidstartCall()
     Starts reading the call, including the headers.
abstract public  voidstartReply()
    



Method Detail
addRef
abstract public int addRef(Object obj) throws IOException(Code)
Adds an object reference.



close
public void close() throws IOException(Code)



completeCall
abstract public void completeCall() throws IOException(Code)
Completes reading the call

The call expects the following protocol data

 Z
 



completeReply
abstract public void completeReply() throws IOException(Code)
Completes reading the call

A successful completion will have a single value:

 z
 



getMethod
abstract public String getMethod()(Code)
Returns the call's method



getReader
abstract public Reader getReader() throws IOException(Code)
Starts reading a string. All the characters must be read before calling the next method. The actual characters will be read with the reader's read() or read(char [], int, int).
 s b16 b8 non-final string chunk
 S b16 b8 final string chunk
 



getRemoteResolver
public HessianRemoteResolver getRemoteResolver()(Code)
Sets the resolver used to lookup remote objects.



init
public void init(InputStream is)(Code)
Initialize the Hessian stream with the underlying input stream.



isEnd
abstract public boolean isEnd() throws IOException(Code)
Returns true if the data has ended.



readBoolean
abstract public boolean readBoolean() throws IOException(Code)
Reads a boolean
 T
 F
 



readBytes
abstract public byte[] readBytes() throws IOException(Code)
Reads a byte array.
 b b16 b8 non-final binary chunk
 B b16 b8 final binary chunk
 



readCall
abstract public int readCall() throws IOException(Code)
Reads the call
 c major minor
 



readDouble
abstract public double readDouble() throws IOException(Code)
Reads a double.
 D b64 b56 b48 b40 b32 b24 b16 b8
 



readEnd
abstract public void readEnd() throws IOException(Code)
Read the end byte



readHeader
abstract public String readHeader() throws IOException(Code)
Reads a header, returning null if there are no headers.
 H b16 b8 value
 



readInputStream
abstract public InputStream readInputStream() throws IOException(Code)
Starts reading a byte array using an input stream. All the bytes must be read before calling the following method.
 b b16 b8 non-final binary chunk
 B b16 b8 final binary chunk
 



readInt
abstract public int readInt() throws IOException(Code)
Reads an integer
 I b32 b24 b16 b8
 



readLength
abstract public int readLength() throws IOException(Code)
Reads the length of a list.



readListEnd
abstract public void readListEnd() throws IOException(Code)
Read the end byte



readListStart
abstract public int readListStart() throws IOException(Code)
Reads the start of a list



readLong
abstract public long readLong() throws IOException(Code)
Reads a long
 L b64 b56 b48 b40 b32 b24 b16 b8
 



readMapEnd
abstract public void readMapEnd() throws IOException(Code)
Read the end byte



readMapStart
abstract public int readMapStart() throws IOException(Code)
Reads the start of a map



readMethod
abstract public String readMethod() throws IOException(Code)
Starts reading the call

A successful completion will have a single value:

 m b16 b8 method
 



readNode
abstract public org.w3c.dom.Node readNode() throws IOException(Code)
Reads an XML node encoded in UTF-8
 x b16 b8 non-final xml chunk
 X b16 b8 final xml chunk
 



readNull
abstract public void readNull() throws IOException(Code)
Reads a null
 N
 



readObject
abstract public Object readObject(Class expectedClass) throws IOException(Code)
Reads an arbitrary object from the input stream.
Parameters:
  expectedClass - the expected class if the protocol doesn't supply it.



readObject
abstract public Object readObject() throws IOException(Code)
Reads an arbitrary object from the input stream.



readRef
abstract public Object readRef() throws IOException(Code)
Reads a reference
 R b32 b24 b16 b8
 



readRemote
abstract public Object readRemote() throws IOException(Code)
Reads a remote object reference to the stream. The type is the type of the remote interface.
 'r' 't' b16 b8 type url
 



readReply
abstract public Object readReply(Class expectedClass) throws Throwable(Code)
Reads a reply as an object. If the reply has a fault, throws the exception.



readString
abstract public String readString() throws IOException(Code)
Reads a string encoded in UTF-8
 s b16 b8 non-final string chunk
 S b16 b8 final string chunk
 



readType
abstract public String readType() throws IOException(Code)
Reads an object type.



readUTCDate
abstract public long readUTCDate() throws IOException(Code)
Reads a date.
 T b64 b56 b48 b40 b32 b24 b16 b8
 



resetReferences
public void resetReferences()(Code)
Resets the references for streaming.



setRef
abstract public void setRef(int i, Object obj) throws IOException(Code)
Sets an object reference.



setRemoteResolver
public void setRemoteResolver(HessianRemoteResolver resolver)(Code)
Sets the resolver used to lookup remote objects.



setSerializerFactory
public void setSerializerFactory(SerializerFactory ser)(Code)
Sets the serializer factory.



skipOptionalCall
public void skipOptionalCall() throws IOException(Code)
For backward compatibility with HessianSkeleton



startCall
abstract public void startCall() throws IOException(Code)
Starts reading the call, including the headers.

The call expects the following protocol data

 c major minor
 m b16 b8 method
 



startReply
abstract public void startReply() throws Throwable(Code)
Starts reading the reply

A successful completion will have a single value:

 r
 v
 



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.