Java Doc for BurlapInput.java in  » Web-Services » hessian » com » caucho » burlap » 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.burlap.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.caucho.burlap.io.AbstractBurlapInput
   com.caucho.burlap.io.BurlapInput

BurlapInput
public class BurlapInput extends AbstractBurlapInput (Code)
Input stream for Burlap requests.

BurlapInput is unbuffered, so any client needs to provide its own buffering.

 InputStream is = ...; // from http connection
 BurlapInput in = new BurlapInput(is);
 String value;
 in.startReply();         // read reply header
 value = in.readString(); // read string value
 in.completeReply();      // read reply footer
 


Field Summary
final public static  intTAG_BASE64
    
final public static  intTAG_BASE64_END
    
final public static  intTAG_BOOLEAN
    
final public static  intTAG_BOOLEAN_END
    
final public static  intTAG_CALL
    
final public static  intTAG_CALL_END
    
final public static  intTAG_DATE
    
final public static  intTAG_DATE_END
    
final public static  intTAG_DOUBLE
    
final public static  intTAG_DOUBLE_END
    
final public static  intTAG_EOF
    
final public static  intTAG_FAULT
    
final public static  intTAG_FAULT_END
    
final public static  intTAG_HEADER
    
final public static  intTAG_HEADER_END
    
final public static  intTAG_INT
    
final public static  intTAG_INT_END
    
final public static  intTAG_LENGTH
    
final public static  intTAG_LENGTH_END
    
final public static  intTAG_LIST
    
final public static  intTAG_LIST_END
    
final public static  intTAG_LONG
    
final public static  intTAG_LONG_END
    
final public static  intTAG_MAP
    
final public static  intTAG_MAP_END
    
final public static  intTAG_METHOD
    
final public static  intTAG_METHOD_END
    
final public static  intTAG_NULL
    
final public static  intTAG_NULL_END
    
final public static  intTAG_REF
    
final public static  intTAG_REF_END
    
final public static  intTAG_REMOTE
    
final public static  intTAG_REMOTE_END
    
final public static  intTAG_REPLY
    
final public static  intTAG_REPLY_END
    
final public static  intTAG_STRING
    
final public static  intTAG_STRING_END
    
final public static  intTAG_TYPE
    
final public static  intTAG_TYPE_END
    
final public static  intTAG_XML
    
final public static  intTAG_XML_END
    
protected  StringBuffer_entityBuffer
    
protected  Calendar_localCalendar
    
protected  int_peek
    
protected  ArrayList_refs
    
protected  StringBuffer_sbuf
    
protected  SerializerFactory_serializerFactory
    
protected  Calendar_utcCalendar
    

Constructor Summary
public  BurlapInput()
     Creates an uninitialized Burlap input stream.
public  BurlapInput(InputStream is)
     Creates a new Burlap input stream, initialized with an underlying input stream.

Method Summary
public  intaddRef(Object ref)
     Adds a list/map reference.
public  voidcompleteCall()
    
public  voidcompleteReply()
    
protected  IOExceptionerror(String message)
    
protected  IOExceptionexpectBeginTag(String expect, String tag)
    
public  voidexpectTag(int expectTag)
    
protected  IOExceptionexpectedChar(String expect, int ch)
    
protected  IOExceptionexpectedTag(String expect, int tag)
    
public  InputStreamgetInputStream()
    
public  StringgetMethod()
    
public  ReadergetReader()
    
public  ThrowablegetReplyFault()
     Returns any reply fault.
public  SerializerFactorygetSerializerFactory()
     Gets the serializer factory.
public  voidinit(InputStream is)
     Initialize the burlap stream with the underlying input stream.
public  booleanisEnd()
     Returns true if this is the end of a list or a map.
protected  booleanisWhitespace(int ch)
    
protected  byte[]parseBytes()
     Parses a byte array.
protected  ByteArrayOutputStreamparseBytes(ByteArrayOutputStream bos)
     Parses a byte array.
protected  longparseDate()
     Parses a date value from the stream.
protected  longparseDate(Calendar calendar)
     Parses a date value from the stream.
protected  StringparseString()
    
protected  StringBufferparseString(StringBuffer sbuf)
     Parses a string value from the stream.
protected  intparseTag()
     Parses a tag.
 org.w3c.dom.NodeparseXML()
    
 intread(byte[] buffer, int offset, int length)
     Reads bytes from the underlying stream.
 intread()
    
public  booleanreadBoolean()
    
public  bytereadByte()
    
public  byte[]readBytes()
    
public  intreadCall()
    
 intreadChar()
     Reads a character from the underlying stream.
public  doublereadDouble()
    
public  voidreadEnd()
     Reads the end byte.
public  floatreadFloat()
    
public  StringreadHeader()
     Reads a header, returning null if there are no headers.
public  InputStreamreadInputStream()
    
public  intreadInt()
    
public  intreadLength()
    
public  voidreadListEnd()
    
public  intreadListStart()
     Reads the start of a list.
public  longreadLocalDate()
     Reads a date.
public  longreadLong()
    
public  voidreadMapEnd()
    
public  intreadMapStart()
     Reads the start of a map.
public  StringreadMethod()
    
public  org.w3c.dom.NodereadNode()
     Reads an XML node.
public  voidreadNull()
    
public  ObjectreadObject(Class cl)
     Reads an object from the input stream with an expected type.
public  ObjectreadObject()
     Reads an arbitrary object from the input stream when the type is unknown.
public  ObjectreadRef()
     Reads a reference.
public  ObjectreadRemote()
     Reads a remote object.
public  ObjectreadReply(Class expectedClass)
     Reads a reply as an object.
public  shortreadShort()
    
public  StringreadString()
    
public  StringreadType()
     Parses a type from the stream.
public  longreadUTCDate()
     Reads a date.
public  ObjectresolveRemote(String type, String url)
     Resolves a remote object.
public  voidsetRef(int i, Object ref)
     Adds a list/map reference.
public  voidsetSerializerFactory(SerializerFactory factory)
     Sets the serializer factory.
protected  intskipWhitespace()
    
public  voidstartCall()
    
public  voidstartReply()
    
protected static  StringtagName(int tag)
    

Field Detail
TAG_BASE64
final public static int TAG_BASE64(Code)



TAG_BASE64_END
final public static int TAG_BASE64_END(Code)



TAG_BOOLEAN
final public static int TAG_BOOLEAN(Code)



TAG_BOOLEAN_END
final public static int TAG_BOOLEAN_END(Code)



TAG_CALL
final public static int TAG_CALL(Code)



TAG_CALL_END
final public static int TAG_CALL_END(Code)



TAG_DATE
final public static int TAG_DATE(Code)



TAG_DATE_END
final public static int TAG_DATE_END(Code)



TAG_DOUBLE
final public static int TAG_DOUBLE(Code)



TAG_DOUBLE_END
final public static int TAG_DOUBLE_END(Code)



TAG_EOF
final public static int TAG_EOF(Code)



TAG_FAULT
final public static int TAG_FAULT(Code)



TAG_FAULT_END
final public static int TAG_FAULT_END(Code)



TAG_HEADER
final public static int TAG_HEADER(Code)



TAG_HEADER_END
final public static int TAG_HEADER_END(Code)



TAG_INT
final public static int TAG_INT(Code)



TAG_INT_END
final public static int TAG_INT_END(Code)



TAG_LENGTH
final public static int TAG_LENGTH(Code)



TAG_LENGTH_END
final public static int TAG_LENGTH_END(Code)



TAG_LIST
final public static int TAG_LIST(Code)



TAG_LIST_END
final public static int TAG_LIST_END(Code)



TAG_LONG
final public static int TAG_LONG(Code)



TAG_LONG_END
final public static int TAG_LONG_END(Code)



TAG_MAP
final public static int TAG_MAP(Code)



TAG_MAP_END
final public static int TAG_MAP_END(Code)



TAG_METHOD
final public static int TAG_METHOD(Code)



TAG_METHOD_END
final public static int TAG_METHOD_END(Code)



TAG_NULL
final public static int TAG_NULL(Code)



TAG_NULL_END
final public static int TAG_NULL_END(Code)



TAG_REF
final public static int TAG_REF(Code)



TAG_REF_END
final public static int TAG_REF_END(Code)



TAG_REMOTE
final public static int TAG_REMOTE(Code)



TAG_REMOTE_END
final public static int TAG_REMOTE_END(Code)



TAG_REPLY
final public static int TAG_REPLY(Code)



TAG_REPLY_END
final public static int TAG_REPLY_END(Code)



TAG_STRING
final public static int TAG_STRING(Code)



TAG_STRING_END
final public static int TAG_STRING_END(Code)



TAG_TYPE
final public static int TAG_TYPE(Code)



TAG_TYPE_END
final public static int TAG_TYPE_END(Code)



TAG_XML
final public static int TAG_XML(Code)



TAG_XML_END
final public static int TAG_XML_END(Code)



_entityBuffer
protected StringBuffer _entityBuffer(Code)



_localCalendar
protected Calendar _localCalendar(Code)



_peek
protected int _peek(Code)



_refs
protected ArrayList _refs(Code)



_sbuf
protected StringBuffer _sbuf(Code)



_serializerFactory
protected SerializerFactory _serializerFactory(Code)



_utcCalendar
protected Calendar _utcCalendar(Code)




Constructor Detail
BurlapInput
public BurlapInput()(Code)
Creates an uninitialized Burlap input stream.



BurlapInput
public BurlapInput(InputStream is)(Code)
Creates a new Burlap input stream, initialized with an underlying input stream.
Parameters:
  is - the underlying input stream.




Method Detail
addRef
public int addRef(Object ref)(Code)
Adds a list/map reference.



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

A successful completion will have a single value:

 </burlap:call>
 



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

A successful completion will have a single value:

 </burlap:reply>
 



error
protected IOException error(String message)(Code)



expectBeginTag
protected IOException expectBeginTag(String expect, String tag)(Code)



expectTag
public void expectTag(int expectTag) throws IOException(Code)



expectedChar
protected IOException expectedChar(String expect, int ch)(Code)



expectedTag
protected IOException expectedTag(String expect, int tag)(Code)



getInputStream
public InputStream getInputStream()(Code)



getMethod
public String getMethod()(Code)
Returns the calls method



getReader
public Reader getReader()(Code)



getReplyFault
public Throwable getReplyFault()(Code)
Returns any reply fault.



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



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



isEnd
public boolean isEnd() throws IOException(Code)
Returns true if this is the end of a list or a map.



isWhitespace
protected boolean isWhitespace(int ch) throws IOException(Code)



parseBytes
protected byte[] parseBytes() throws IOException(Code)
Parses a byte array.



parseBytes
protected ByteArrayOutputStream parseBytes(ByteArrayOutputStream bos) throws IOException(Code)
Parses a byte array.



parseDate
protected long parseDate() throws IOException(Code)
Parses a date value from the stream.



parseDate
protected long parseDate(Calendar calendar) throws IOException(Code)
Parses a date value from the stream.



parseString
protected String parseString() throws IOException(Code)



parseString
protected StringBuffer parseString(StringBuffer sbuf) throws IOException(Code)
Parses a string value from the stream. The burlap object's string buffer is used for the result.



parseTag
protected int parseTag() throws IOException(Code)
Parses a tag. Returns true if it's a start tag.



parseXML
org.w3c.dom.Node parseXML() throws IOException(Code)



read
int read(byte[] buffer, int offset, int length) throws IOException(Code)
Reads bytes from the underlying stream.



read
int read() throws IOException(Code)



readBoolean
public boolean readBoolean() throws IOException(Code)
Reads a boolean
 <boolean>0</boolean>
 <boolean>1</boolean>
 



readByte
public byte readByte() throws IOException(Code)
Reads a byte
 <int>value</int>
 



readBytes
public byte[] readBytes() throws IOException(Code)
Reads a byte array
 <base64>...</base64>
 



readCall
public int readCall() throws IOException(Code)
Starts reading the call

A successful completion will have a single value:

 <burlap:call>
 



readChar
int readChar() throws IOException(Code)
Reads a character from the underlying stream.



readDouble
public double readDouble() throws IOException(Code)
Reads a double
 <double>value</double>
 



readEnd
public void readEnd() throws IOException(Code)
Reads the end byte.



readFloat
public float readFloat() throws IOException(Code)
Reads a float
 <double>value</double>
 



readHeader
public String readHeader() throws IOException(Code)
Reads a header, returning null if there are no headers.
 <header>value</header>
 



readInputStream
public InputStream readInputStream()(Code)



readInt
public int readInt() throws IOException(Code)
Reads an integer
 <int>value</int>
 



readLength
public int readLength() throws IOException(Code)
Reads a length
 <length>value</length>
 



readListEnd
public void readListEnd() throws IOException(Code)
Reads the end of the map



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



readLocalDate
public long readLocalDate() throws IOException(Code)
Reads a date.
 <date>ISO-8609 date</date>
 



readLong
public long readLong() throws IOException(Code)
Reads a long
 <long>value</long>
 



readMapEnd
public void readMapEnd() throws IOException(Code)
Reads the end of the map



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



readMethod
public String readMethod() throws IOException(Code)
Reads the method
 <method>method</method>
 



readNode
public org.w3c.dom.Node readNode() throws IOException(Code)
Reads an XML node.
 &xml;xml string</xml>
 



readNull
public void readNull() throws IOException(Code)
Reads a null
 <null></null>
 



readObject
public Object readObject(Class cl) throws IOException(Code)
Reads an object from the input stream with an expected type.



readObject
public Object readObject() throws IOException(Code)
Reads an arbitrary object from the input stream when the type is unknown.



readRef
public Object readRef() throws IOException(Code)
Reads a reference.



readRemote
public Object readRemote() throws IOException(Code)
Reads a remote object.



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



readShort
public short readShort() throws IOException(Code)
Reads a short
 <int>value</int>
 



readString
public String readString() throws IOException(Code)
Reads a string
 <string>value</string>
 



readType
public String readType() throws IOException(Code)
Parses a type from the stream.
 <type>type</type>
 



readUTCDate
public long readUTCDate() throws IOException(Code)
Reads a date.
 <date>ISO-8609 date</date>
 



resolveRemote
public Object resolveRemote(String type, String url) throws IOException(Code)
Resolves a remote object.



setRef
public void setRef(int i, Object ref)(Code)
Adds a list/map reference.



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



skipWhitespace
protected int skipWhitespace() throws IOException(Code)



startCall
public void startCall() throws IOException(Code)
Starts reading the call
 <burlap:call>
 <method>method</method>
 



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

A successful completion will have a single value:

 <burlap:reply>
 <value>
 



tagName
protected static String tagName(int tag)(Code)




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