Java Doc for AbstractHessianOutput.java in  » EJB-Server-resin-3.1.5 » 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 » EJB Server resin 3.1.5 » hessian » com.caucho.hessian.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

All known Subclasses:   com.caucho.burlap.io.AbstractBurlapOutput,  com.caucho.hessian.io.HessianOutput,  com.caucho.hessian.io.Hessian2Output,
AbstractHessianOutput
abstract public class AbstractHessianOutput (Code)
Abstract output stream for Hessian requests.
 OutputStream os = ...; // from http connection
 AbstractOutput out = new HessianSerializerOutput(os);
 String value;
 out.startCall("hello");  // start hello call
 out.writeString("arg1"); // write a string argument
 out.completeCall();      // complete the call
 


Field Summary
protected  SerializerFactory_serializerFactory
    


Method Summary
abstract public  booleanaddRef(Object object)
     Adds an object to the reference list.
public  voidcall(String method, Object[] args)
     Writes a complete method call.
public  voidclose()
    
abstract public  voidcompleteCall()
    
public  voidcompleteReply()
    
final public  SerializerFactoryfindSerializerFactory()
     Gets the serializer factory.
public  voidflush()
    
public  SerializerFactorygetSerializerFactory()
     Gets the serializer factory.
public  voidinit(OutputStream os)
     Initialize the output with a new underlying stream.
abstract public  booleanremoveRef(Object obj)
     Removes a reference.
abstract public  booleanreplaceRef(Object oldRef, Object newRef)
     Replaces a reference from one object to another.
public  voidresetReferences()
     Resets the references for streaming.
public  voidsetSerializerFactory(SerializerFactory factory)
     Sets the serializer factory.
abstract public  voidstartCall()
    
abstract public  voidstartCall(String method)
    
public  voidstartReply()
    
abstract public  voidwriteBoolean(boolean value)
     Writes a boolean value to the stream.
abstract public  voidwriteByteBufferEnd(byte[] buffer, int offset, int length)
     Writes the last chunk of a byte buffer to the stream.
abstract public  voidwriteByteBufferPart(byte[] buffer, int offset, int length)
     Writes a byte buffer to the stream.
abstract public  voidwriteByteBufferStart()
     Writes a byte buffer to the stream.
abstract public  voidwriteBytes(byte[] buffer)
     Writes a byte array to the stream.
abstract public  voidwriteBytes(byte[] buffer, int offset, int length)
     Writes a byte array to the stream.
public  voidwriteClassFieldLength(int len)
     Writes the end of the class.
abstract public  voidwriteDouble(double value)
     Writes a double value to the stream.
public  voidwriteFault(String code, String message, Object detail)
    
abstract public  voidwriteHeader(String name)
     Writes a header name.
abstract public  voidwriteInt(int value)
     Writes an integer value to the stream.
abstract public  booleanwriteListBegin(int length, String type)
     Writes the list header to the stream.
abstract public  voidwriteListEnd()
     Writes the tail of the list to the stream.
abstract public  voidwriteLong(long value)
     Writes a long value to the stream.
abstract public  voidwriteMapBegin(String type)
     Writes the map header to the stream.
abstract public  voidwriteMapEnd()
     Writes the tail of the map to the stream.
abstract public  voidwriteMethod(String method)
     Writes the method tag.
abstract public  voidwriteNull()
     Writes a null value to the stream.
abstract public  voidwriteObject(Object object)
     Writes a generic object to the output stream.
public  intwriteObjectBegin(String type)
     Writes the object header to the stream (for Hessian 2.0), or a Map for Hessian 1.0.
public  voidwriteObjectEnd()
     Writes the tail of the object to the stream.
abstract public  voidwriteRef(int value)
     Writes a reference.
abstract public  voidwriteRemote(String type, String url)
     Writes a remote object reference to the stream.
abstract public  voidwriteString(String value)
     Writes a string value to the stream using UTF-8 encoding.
abstract public  voidwriteString(char[] buffer, int offset, int length)
     Writes a string value to the stream using UTF-8 encoding.
abstract public  voidwriteUTCDate(long time)
     Writes a date to the stream.

Field Detail
_serializerFactory
protected SerializerFactory _serializerFactory(Code)





Method Detail
addRef
abstract public boolean addRef(Object object) throws IOException(Code)
Adds an object to the reference list. If the object already exists, writes the reference, otherwise, the caller is responsible for the serialization.
 R b32 b24 b16 b8
 

Parameters:
  object - the object to add as a reference. true if the object has already been written.



call
public void call(String method, Object[] args) throws IOException(Code)
Writes a complete method call.



close
public void close() throws IOException(Code)



completeCall
abstract public void completeCall() throws IOException(Code)
Completes the method call:
 z
 



completeReply
public void completeReply() throws IOException(Code)



findSerializerFactory
final public SerializerFactory findSerializerFactory()(Code)
Gets the serializer factory.



flush
public void flush() throws IOException(Code)



getSerializerFactory
public SerializerFactory getSerializerFactory()(Code)
Gets the serializer factory.



init
public void init(OutputStream os)(Code)
Initialize the output with a new underlying stream.



removeRef
abstract public boolean removeRef(Object obj) throws IOException(Code)
Removes a reference.



replaceRef
abstract public boolean replaceRef(Object oldRef, Object newRef) throws IOException(Code)
Replaces a reference from one object to another.



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



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



startCall
abstract public void startCall() throws IOException(Code)
Starts the method call:
 c major minor
 

Parameters:
  method - the method name to call.



startCall
abstract public void startCall(String method) throws IOException(Code)
Starts the method call:
 c major minor
 m b16 b8 method-namek
 

Parameters:
  method - the method name to call.



startReply
public void startReply() throws IOException(Code)



writeBoolean
abstract public void writeBoolean(boolean value) throws IOException(Code)
Writes a boolean value to the stream. The boolean will be written with the following syntax:
 T
 F
 

Parameters:
  value - the boolean value to write.



writeByteBufferEnd
abstract public void writeByteBufferEnd(byte[] buffer, int offset, int length) throws IOException(Code)
Writes the last chunk of a byte buffer to the stream.
 b b16 b18 bytes
 

Parameters:
  value - the string value to write.



writeByteBufferPart
abstract public void writeByteBufferPart(byte[] buffer, int offset, int length) throws IOException(Code)
Writes a byte buffer to the stream.
 b b16 b18 bytes
 

Parameters:
  value - the string value to write.



writeByteBufferStart
abstract public void writeByteBufferStart() throws IOException(Code)
Writes a byte buffer to the stream.



writeBytes
abstract public void writeBytes(byte[] buffer) throws IOException(Code)
Writes a byte array to the stream. The array will be written with the following syntax:
 B b16 b18 bytes
 
If the value is null, it will be written as
 N
 

Parameters:
  value - the string value to write.



writeBytes
abstract public void writeBytes(byte[] buffer, int offset, int length) throws IOException(Code)
Writes a byte array to the stream. The array will be written with the following syntax:
 B b16 b18 bytes
 
If the value is null, it will be written as
 N
 

Parameters:
  value - the string value to write.



writeClassFieldLength
public void writeClassFieldLength(int len) throws IOException(Code)
Writes the end of the class.



writeDouble
abstract public void writeDouble(double value) throws IOException(Code)
Writes a double value to the stream. The double will be written with the following syntax:
 D b64 b56 b48 b40 b32 b24 b16 b8
 

Parameters:
  value - the double value to write.



writeFault
public void writeFault(String code, String message, Object detail) throws IOException(Code)



writeHeader
abstract public void writeHeader(String name) throws IOException(Code)
Writes a header name. The header value must immediately follow.
 H b16 b8 foo value
 



writeInt
abstract public void writeInt(int value) throws IOException(Code)
Writes an integer value to the stream. The integer will be written with the following syntax:
 I b32 b24 b16 b8
 

Parameters:
  value - the integer value to write.



writeListBegin
abstract public boolean writeListBegin(int length, String type) throws IOException(Code)
Writes the list header to the stream. List writers will call writeListBegin followed by the list contents and then call writeListEnd.
 <list>
 <type>java.util.ArrayList</type>
 <length>3</length>
 <int>1</int>
 <int>2</int>
 <int>3</int>
 </list>
 



writeListEnd
abstract public void writeListEnd() throws IOException(Code)
Writes the tail of the list to the stream.



writeLong
abstract public void writeLong(long value) throws IOException(Code)
Writes a long value to the stream. The long will be written with the following syntax:
 L b64 b56 b48 b40 b32 b24 b16 b8
 

Parameters:
  value - the long value to write.



writeMapBegin
abstract public void writeMapBegin(String type) throws IOException(Code)
Writes the map header to the stream. Map writers will call writeMapBegin followed by the map contents and then call writeMapEnd.
 Mt b16 b8 type ( )z
 



writeMapEnd
abstract public void writeMapEnd() throws IOException(Code)
Writes the tail of the map to the stream.



writeMethod
abstract public void writeMethod(String method) throws IOException(Code)
Writes the method tag.
 m b16 b8 method-name
 

Parameters:
  method - the method name to call.



writeNull
abstract public void writeNull() throws IOException(Code)
Writes a null value to the stream. The null will be written with the following syntax
 N
 

Parameters:
  value - the string value to write.



writeObject
abstract public void writeObject(Object object) throws IOException(Code)
Writes a generic object to the output stream.



writeObjectBegin
public int writeObjectBegin(String type) throws IOException(Code)
Writes the object header to the stream (for Hessian 2.0), or a Map for Hessian 1.0. Object writers will call writeObjectBegin followed by the map contents and then call writeObjectEnd.
 Ot b16 b8 type ( )* z
 o b32 b24 b16 b8 * z
 
true if the object has already been defined.



writeObjectEnd
public void writeObjectEnd() throws IOException(Code)
Writes the tail of the object to the stream.



writeRef
abstract public void writeRef(int value) throws IOException(Code)
Writes a reference.
 R b32 b24 b16 b8
 

Parameters:
  value - the integer value to write.



writeRemote
abstract public void writeRemote(String type, String url) throws IOException(Code)
Writes a remote object reference to the stream. The type is the type of the remote interface.
 'r' 't' b16 b8 type url
 



writeString
abstract public void writeString(String value) throws IOException(Code)
Writes a string value to the stream using UTF-8 encoding. The string will be written with the following syntax:
 S b16 b8 string-value
 
If the value is null, it will be written as
 N
 

Parameters:
  value - the string value to write.



writeString
abstract public void writeString(char[] buffer, int offset, int length) throws IOException(Code)
Writes a string value to the stream using UTF-8 encoding. The string will be written with the following syntax:
 S b16 b8 string-value
 
If the value is null, it will be written as
 N
 

Parameters:
  value - the string value to write.



writeUTCDate
abstract public void writeUTCDate(long time) throws IOException(Code)
Writes a date to the stream.
 T  b64 b56 b48 b40 b32 b24 b16 b8
 

Parameters:
  time - the date in milliseconds from the epoch in UTC



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.