Java Doc for CDRInputStream.java in  » Collaboration » JacORB » org » jacorb » orb » 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 » Collaboration » JacORB » org.jacorb.orb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.io.InputStream
      org.omg.CORBA.portable.InputStream
         org.omg.CORBA_2_3.portable.InputStream
            org.jacorb.orb.CDRInputStream

All known Subclasses:   org.jacorb.orb.giop.MessageInputStream,
CDRInputStream
public class CDRInputStream extends org.omg.CORBA_2_3.portable.InputStream (Code)
Read CDR encoded data
author:
   Gerald Brose, FU Berlin
author:
   $Id: CDRInputStream.java,v 1.114 2007/01/08 12:18:45 alphonse.bendt Exp $


Field Summary
protected  byte[]buffer
    
protected  intgiop_minor
    
protected  intindex
    
public  booleanlittleEndian
    
protected  intpos
    

Constructor Summary
public  CDRInputStream(org.omg.CORBA.ORB orb, byte[] buf)
    
public  CDRInputStream(org.omg.CORBA.ORB orb, byte[] buf, boolean littleEndian)
    
public  CDRInputStream(byte[] buffer, boolean littleEndian)
    

Method Summary
public  intavailable()
     the number of bytes that can be read (or skipped over) from thisinput stream.
public  voidclose()
    
final public  voidcloseEncapsulation()
    
public  byte[]getBufferCopy()
    
public  intgetGIOPMinor()
    
public  intget_pos()
    
public  voidmark(int readLimit)
    
public  booleanmarkSupported()
    
final public  voidopenEncapsulatedArray()
    
final public  intopenEncapsulation()
    
public  org.omg.CORBA.ORBorb()
    
public  intread()
     Reads the next byte of data from the input stream.
public  intread(byte[] b)
    
public  intread(byte[] b, int off, int len)
     Performs as described by java.io.InputStream.read(byte[], int, int), but never blocks.
final public  org.omg.CORBA.Objectread_Object()
    
public  org.omg.CORBA.Objectread_Object(java.lang.Class clazz)
    
final public  org.omg.CORBA.Principalread_Principal()
    
final public  org.omg.CORBA.TypeCoderead_TypeCode()
    
public  java.lang.Objectread_abstract_interface()
     Reads an abstract interface from this stream.
public  java.lang.Objectread_abstract_interface(java.lang.Class clazz)
     Reads an abstract interface from this stream.
final public  org.omg.CORBA.Anyread_any()
    
final public  booleanread_boolean()
    
final public  voidread_boolean_array(boolean[] value, int offset, int length)
    
final public  charread_char()
     read_char reads a character from the stream.
final public  voidread_char_array(char[] value, int offset, int length)
     read_char_array reads an character array from the stream.
final public  doubleread_double()
    
final public  voidread_double_array(double[] value, int offset, int length)
    
final public  BigDecimalread_fixed()
    
final public  java.math.BigDecimalread_fixed(short digits, short scale)
    
final public  floatread_float()
    
final public  voidread_float_array(float[] value, int offset, int length)
    
final public  intread_long()
    
final public  voidread_long_array(int[] value, int offset, int length)
    
final public  longread_longlong()
    
final public  voidread_longlong_array(long[] value, int offset, int length)
    
final public  byteread_octet()
    
final public  voidread_octet_array(byte[] value, int offset, int length)
    
final public  shortread_short()
    
final public  voidread_short_array(short[] value, int offset, int length)
    
final public  Stringread_string()
     read_string reads a string from the buffer.
final public  intread_ulong()
    
final public  voidread_ulong_array(int[] value, int offset, int length)
    
final public  longread_ulonglong()
    
final public  voidread_ulonglong_array(long[] value, int offset, int length)
    
final public  shortread_ushort()
    
final public  voidread_ushort_array(short[] value, int offset, int length)
    
final  voidread_value(org.omg.CORBA.TypeCode typeCode, org.omg.CORBA.portable.OutputStream out)
     Reads an instance of the type described by type code tc from this CDRInputStream, and remarshals it to the given OutputStream, out.
public  java.io.Serializableread_value()
    
public  java.io.Serializableread_value(String rep_id)
    
public  java.io.Serializableread_value(java.io.Serializable value)
     Unmarshals a valuetype instance from this stream.
public  java.io.Serializableread_value(java.lang.Class clz)
    
public  java.io.Serializableread_value(org.omg.CORBA.portable.BoxedValueHelper factory)
    
final public  charread_wchar()
    
final public  voidread_wchar_array(char[] value, int offset, int length)
    
final public  Stringread_wstring()
    
public  voidregister_value(java.io.Serializable value)
     Stores `value' into this stream's valueMap.
public  voidreset()
    
public  voidsetCodeSet(int codeSet, int codeSetWide)
    
public  voidsetGIOPMinor(int giop_minor)
    
final public  voidsetLittleEndian(boolean b)
    
final protected  voidskip(int distance)
    
public  voidupdateMutatorConnection(GIOPConnection connection)
     updateMutatorConnection is an accessor that updates the ior mutator. By making callers pass in a GIOPConnection not a transport this allows callers to not have to call getTransport which would require a synchronized lock.

Field Detail
buffer
protected byte[] buffer(Code)
indices into the actual buffer



giop_minor
protected int giop_minor(Code)



index
protected int index(Code)



littleEndian
public boolean littleEndian(Code)



pos
protected int pos(Code)




Constructor Detail
CDRInputStream
public CDRInputStream(org.omg.CORBA.ORB orb, byte[] buf)(Code)



CDRInputStream
public CDRInputStream(org.omg.CORBA.ORB orb, byte[] buf, boolean littleEndian)(Code)



CDRInputStream
public CDRInputStream(byte[] buffer, boolean littleEndian)(Code)




Method Detail
available
public int available()(Code)
the number of bytes that can be read (or skipped over) from thisinput stream. This is not necessarily the number of 'valid' bytes.



close
public void close()(Code)



closeEncapsulation
final public void closeEncapsulation()(Code)
close a CDR encapsulation and restore index and byte order information



getBufferCopy
public byte[] getBufferCopy()(Code)



getGIOPMinor
public int getGIOPMinor()(Code)



get_pos
public int get_pos()(Code)



mark
public void mark(int readLimit)(Code)



markSupported
public boolean markSupported()(Code)



openEncapsulatedArray
final public void openEncapsulatedArray()(Code)



openEncapsulation
final public int openEncapsulation()(Code)
open a CDR encapsulation and restore index and byte order information



orb
public org.omg.CORBA.ORB orb()(Code)



read
public int read() throws java.io.IOException(Code)
Reads the next byte of data from the input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned. the next byte of data, or -1 if the end of thestream is reached.
throws:
  java.io.IOException - if stream is closed.



read
public int read(byte[] b) throws java.io.IOException(Code)
Has the effect of read(b, 0, b.length);
See Also:   CDRInputStream.read(byte[],int,int)



read
public int read(byte[] b, int off, int len) throws java.io.IOException(Code)
Performs as described by java.io.InputStream.read(byte[], int, int), but never blocks.



read_Object
final public org.omg.CORBA.Object read_Object()(Code)



read_Object
public org.omg.CORBA.Object read_Object(java.lang.Class clazz)(Code)



read_Principal
final public org.omg.CORBA.Principal read_Principal()(Code)



read_TypeCode
final public org.omg.CORBA.TypeCode read_TypeCode()(Code)



read_abstract_interface
public java.lang.Object read_abstract_interface()(Code)
Reads an abstract interface from this stream. The abstract interface Reads an abstract interface from this stream. The abstract interface appears as a union with a boolean discriminator, which is true if the union contains a CORBA object reference, or false if the union contains a value.



read_abstract_interface
public java.lang.Object read_abstract_interface(java.lang.Class clazz)(Code)
Reads an abstract interface from this stream. The abstract interface appears as a union with a boolean discriminator, which is true if the union contains a CORBA object reference, or false if the union contains a value.



read_any
final public org.omg.CORBA.Any read_any()(Code)



read_boolean
final public boolean read_boolean()(Code)



read_boolean_array
final public void read_boolean_array(boolean[] value, int offset, int length)(Code)
arrays



read_char
final public char read_char()(Code)
read_char reads a character from the stream. a char value



read_char_array
final public void read_char_array(char[] value, int offset, int length)(Code)
read_char_array reads an character array from the stream.
Parameters:
  value - a char[], the result array.
Parameters:
  offset - an int, an offset into value
Parameters:
  length - an int, the length of the array to read



read_double
final public double read_double()(Code)



read_double_array
final public void read_double_array(double[] value, int offset, int length)(Code)



read_fixed
final public BigDecimal read_fixed()(Code)



read_fixed
final public java.math.BigDecimal read_fixed(short digits, short scale)(Code)



read_float
final public float read_float()(Code)



read_float_array
final public void read_float_array(float[] value, int offset, int length)(Code)



read_long
final public int read_long()(Code)



read_long_array
final public void read_long_array(int[] value, int offset, int length)(Code)



read_longlong
final public long read_longlong()(Code)



read_longlong_array
final public void read_longlong_array(long[] value, int offset, int length)(Code)



read_octet
final public byte read_octet()(Code)



read_octet_array
final public void read_octet_array(byte[] value, int offset, int length)(Code)



read_short
final public short read_short()(Code)
Read methods for big-endian as well as little endian data input contributed by Mark Allerton



read_short_array
final public void read_short_array(short[] value, int offset, int length)(Code)



read_string
final public String read_string()(Code)
read_string reads a string from the buffer. It is optimized for whether it is reading a blank string, and whether codeset translation is active. a String value, possibly blank, never null.



read_ulong
final public int read_ulong()(Code)



read_ulong_array
final public void read_ulong_array(int[] value, int offset, int length)(Code)



read_ulonglong
final public long read_ulonglong()(Code)



read_ulonglong_array
final public void read_ulonglong_array(long[] value, int offset, int length)(Code)



read_ushort
final public short read_ushort()(Code)



read_ushort_array
final public void read_ushort_array(short[] value, int offset, int length)(Code)



read_value
final void read_value(org.omg.CORBA.TypeCode typeCode, org.omg.CORBA.portable.OutputStream out)(Code)
Reads an instance of the type described by type code tc from this CDRInputStream, and remarshals it to the given OutputStream, out. Called from Any.



read_value
public java.io.Serializable read_value()(Code)



read_value
public java.io.Serializable read_value(String rep_id)(Code)
Overrides read_value(java.io.Serializable value) in org.omg.CORBA_2_3.portable.InputStream



read_value
public java.io.Serializable read_value(java.io.Serializable value)(Code)
Unmarshals a valuetype instance from this stream. The value returned is the same value passed in, with all the data unmarshaled (IDL-to-Java Mapping 1.2, August 2002, 1.13.1, p. 1-39). The specified value is an uninitialized value that is added to the ORB's indirection table before unmarshaling (1.21.4.1, p. 1-117). This method is intended to be called from custom valuetype factories. Unlike the other read_value() methods in this class, this method does not expect a GIOP value tag nor a repository id in the stream. Overrides read_value(value) in org.omg.CORBA_2_3.portable.InputStream



read_value
public java.io.Serializable read_value(java.lang.Class clz)(Code)
Overrides read_value(clz) in org.omg.CORBA_2_3.portable.InputStream



read_value
public java.io.Serializable read_value(org.omg.CORBA.portable.BoxedValueHelper factory)(Code)
Overrides read_value(factory) in org.omg.CORBA_2_3.portable.InputStream



read_wchar
final public char read_wchar()(Code)



read_wchar_array
final public void read_wchar_array(char[] value, int offset, int length)(Code)



read_wstring
final public String read_wstring()(Code)



register_value
public void register_value(java.io.Serializable value)(Code)
Stores `value' into this stream's valueMap. This is provided as a callback for value factories, so that a value factory can store an object into the map before actually reading its state. This is essential for unmarshalling recursive values.



reset
public void reset() throws IOException(Code)



setCodeSet
public void setCodeSet(int codeSet, int codeSetWide)(Code)



setGIOPMinor
public void setGIOPMinor(int giop_minor)(Code)



setLittleEndian
final public void setLittleEndian(boolean b)(Code)



skip
final protected void skip(int distance)(Code)



updateMutatorConnection
public void updateMutatorConnection(GIOPConnection connection)(Code)
updateMutatorConnection is an accessor that updates the ior mutator. By making callers pass in a GIOPConnection not a transport this allows callers to not have to call getTransport which would require a synchronized lock. Therefore if the mutator has not been enabled this is effectively a NOP.
Parameters:
  connection - an org.omg.ETF.Connection value



Methods inherited from org.omg.CORBA_2_3.portable.InputStream
public java.lang.Object read_abstract_interface()(Code)(Java Doc)
public java.lang.Object read_abstract_interface(java.lang.Class clz)(Code)(Java Doc)
public java.io.Serializable read_value()(Code)(Java Doc)
public java.io.Serializable read_value(java.lang.String rep_id)(Code)(Java Doc)
public java.io.Serializable read_value(java.lang.Class clz)(Code)(Java Doc)
public java.io.Serializable read_value(org.omg.CORBA.portable.BoxedValueHelper factory)(Code)(Java Doc)
public java.io.Serializable read_value(java.io.Serializable value)(Code)(Java Doc)

Methods inherited from org.omg.CORBA.portable.InputStream
public org.omg.CORBA.ORB orb()(Code)(Java Doc)
public int read() throws java.io.IOException(Code)(Java Doc)
public org.omg.CORBA.Context read_Context()(Code)(Java Doc)
abstract public org.omg.CORBA.Object read_Object()(Code)(Java Doc)
public org.omg.CORBA.Object read_Object(java.lang.Class clz)(Code)(Java Doc)
public org.omg.CORBA.Principal read_Principal()(Code)(Java Doc)
abstract public org.omg.CORBA.TypeCode read_TypeCode()(Code)(Java Doc)
abstract public org.omg.CORBA.Any read_any()(Code)(Java Doc)
abstract public boolean read_boolean()(Code)(Java Doc)
abstract public void read_boolean_array(boolean[] value, int offset, int length)(Code)(Java Doc)
abstract public char read_char()(Code)(Java Doc)
abstract public void read_char_array(char[] value, int offset, int length)(Code)(Java Doc)
abstract public double read_double()(Code)(Java Doc)
abstract public void read_double_array(double[] value, int offset, int length)(Code)(Java Doc)
public java.math.BigDecimal read_fixed()(Code)(Java Doc)
public java.math.BigDecimal read_fixed(short digits, short scale)(Code)(Java Doc)
abstract public float read_float()(Code)(Java Doc)
abstract public void read_float_array(float[] value, int offset, int length)(Code)(Java Doc)
abstract public int read_long()(Code)(Java Doc)
abstract public void read_long_array(int[] value, int offset, int length)(Code)(Java Doc)
abstract public long read_longlong()(Code)(Java Doc)
abstract public void read_longlong_array(long[] value, int offset, int length)(Code)(Java Doc)
abstract public byte read_octet()(Code)(Java Doc)
abstract public void read_octet_array(byte[] value, int offset, int length)(Code)(Java Doc)
abstract public short read_short()(Code)(Java Doc)
abstract public void read_short_array(short[] value, int offset, int length)(Code)(Java Doc)
abstract public String read_string()(Code)(Java Doc)
abstract public int read_ulong()(Code)(Java Doc)
abstract public void read_ulong_array(int[] value, int offset, int length)(Code)(Java Doc)
abstract public long read_ulonglong()(Code)(Java Doc)
abstract public void read_ulonglong_array(long[] value, int offset, int length)(Code)(Java Doc)
abstract public short read_ushort()(Code)(Java Doc)
abstract public void read_ushort_array(short[] value, int offset, int length)(Code)(Java Doc)
abstract public char read_wchar()(Code)(Java Doc)
abstract public void read_wchar_array(char[] value, int offset, int length)(Code)(Java Doc)
abstract public String read_wstring()(Code)(Java Doc)

Methods inherited from java.io.InputStream
public int available() throws IOException(Code)(Java Doc)
public void close() throws IOException(Code)(Java Doc)
public synchronized void mark(int readlimit)(Code)(Java Doc)
public boolean markSupported()(Code)(Java Doc)
abstract public int read() throws IOException(Code)(Java Doc)
public int read(byte b) throws IOException(Code)(Java Doc)
public int read(byte b, int off, int len) throws IOException(Code)(Java Doc)
public synchronized void reset() throws IOException(Code)(Java Doc)
public long skip(long n) throws IOException(Code)(Java Doc)

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.