Java Doc for CDROutputStream.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.OutputStream
      org.omg.CORBA.portable.OutputStream
         org.omg.CORBA_2_3.portable.OutputStream
            org.jacorb.orb.CDROutputStream

All known Subclasses:   org.jacorb.orb.giop.MessageOutputStream,
CDROutputStream
public class CDROutputStream extends org.omg.CORBA_2_3.portable.OutputStream (Code)

author:
   Gerald Brose, 1999
version:
   $Id: CDROutputStream.java,v 1.122 2006/11/30 13:11:07 alphonse.bendt Exp $
version:
   A stream for CDR marshalling.


Field Summary
protected  byte[]buffer
    
protected  intgiop_minor
    

Constructor Summary
public  CDROutputStream()
     OutputStreams created using the empty constructor are used for in memory marshaling, but do not use the ORB's output buffer manager.
public  CDROutputStream(org.omg.CORBA.ORB orb)
    
public  CDROutputStream(byte[] buf)
     Class constructor setting the buffer size for the message and the character encoding sets.

Method Summary
final public  voidbeginEncapsulatedArray()
     Can be used locally for data type conversions without preceeding call to beginEncapsulation, i.e.
final public  voidbeginEncapsulation()
     Start a CDR encapsulation.
public  voidclose()
    
public  voidconfigure(Configuration configuration)
     This stream is self-configuring, i.e.
public  org.omg.CORBA.portable.InputStreamcreate_input_stream()
    
final public  voidendEncapsulation()
     Terminate the encapsulation by writing its length to its beginning.
protected  voidfinalize()
    
public  byte[]getBufferCopy()
    
public  intgetGIOPMinor()
    
final public  voidincreaseSize(int amount)
    
public  org.omg.CORBA.ORBorb()
    
final public  voidreduceSize(int amount)
    
public  voidreset()
    
public  voidsetBuffer(byte[] b)
    
public  voidsetBufferWithoutReset(byte[] b, int size)
    
public  voidsetCodeSet(int codeSet, int codeSetWide)
    
public  voidsetGIOPMinor(int giop_minor)
    
public  intsize()
    
final public  voidskip(int step)
    
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.
public  voidwrite(OutputStream out, int start, int length)
     write the contents of this CDR stream to the output stream, includes all deferred writes (e.g., for byte arrays)... called by, e.g.
public  voidwrite_IOR(IOR ior)
    
public  voidwrite_Object(org.omg.CORBA.Object value)
    
final public  voidwrite_Principal(org.omg.CORBA.Principal value)
    
final public  voidwrite_TypeCode(org.omg.CORBA.TypeCode typeCode)
    
public  voidwrite_abstract_interface(java.lang.Object object)
     Writes an abstract interface to this stream.
final public  voidwrite_any(org.omg.CORBA.Any value)
    
final public  voidwrite_boolean(boolean value)
    
final public  voidwrite_boolean_array(boolean[] value, int offset, int length)
    
final public  voidwrite_char(char c)
     write_char writes a character to the output stream.
final public  voidwrite_char_array(char[] value, int offset, int length)
    
final public  voidwrite_double(double value)
    
final public  voidwrite_double_array(double[] value, int offset, int length)
    
final public  voidwrite_fixed(BigDecimal value, short digits, short scale)
    
final public  voidwrite_fixed(java.math.BigDecimal value)
    
final public  voidwrite_float(float value)
    
final public  voidwrite_float_array(float[] value, int offset, int length)
    
final public  voidwrite_long(int value)
    
final public  voidwrite_long_array(int[] value, int offset, int length)
    
final public  voidwrite_longlong(long value)
    
final public  voidwrite_longlong_array(long[] value, int offset, int length)
    
final public  voidwrite_octet(byte value)
    
final public  voidwrite_octet_array(byte[] value, int offset, int length)
    
final public  voidwrite_short(short value)
    
final public  voidwrite_short_array(short[] value, int offset, int length)
    
final public  voidwrite_string(String s)
     write_string writes a string to the output stream.
final public  voidwrite_ulong(int value)
    
final public  voidwrite_ulong_array(int[] value, int offset, int length)
    
final public  voidwrite_ulonglong(long value)
    
final public  voidwrite_ulonglong_array(long[] value, int offset, int length)
    
final public  voidwrite_ushort(short value)
    
final public  voidwrite_ushort_array(short[] value, int offset, int length)
    
final public  voidwrite_value(org.omg.CORBA.TypeCode typeCode, org.omg.CORBA.portable.InputStream input)
     Reads a value of the type indicated by tc from the InputStream in and remarshals it to this CDROutputStream.
public  voidwrite_value(java.io.Serializable value)
     Writes the serialized state of `value' to this stream.
public  voidwrite_value(java.io.Serializable value, org.omg.CORBA.portable.BoxedValueHelper factory)
    
public  voidwrite_value(java.io.Serializable value, java.lang.Class clazz)
    
public  voidwrite_value(java.io.Serializable value, String repository_id)
    
final public  voidwrite_wchar(char c)
    
final public  voidwrite_wchar_array(char[] value, int offset, int length)
    
final public  voidwrite_wstring(String s)
    

Field Detail
buffer
protected byte[] buffer(Code)



giop_minor
protected int giop_minor(Code)




Constructor Detail
CDROutputStream
public CDROutputStream()(Code)
OutputStreams created using the empty constructor are used for in memory marshaling, but do not use the ORB's output buffer manager. A stream created with this c'tor is not explicitly configured, i.e. it will use default configuration only



CDROutputStream
public CDROutputStream(org.omg.CORBA.ORB orb)(Code)
OutputStreams created using this constructor are used also for in memory marshaling, but do use the ORB's output buffer manager



CDROutputStream
public CDROutputStream(byte[] buf)(Code)
Class constructor setting the buffer size for the message and the character encoding sets. A stream created with this c'tor is not explicitly configured, i.e. it will use default configuration only!




Method Detail
beginEncapsulatedArray
final public void beginEncapsulatedArray()(Code)
Can be used locally for data type conversions without preceeding call to beginEncapsulation, i.e. without a leading long that indicates the size.



beginEncapsulation
final public void beginEncapsulation()(Code)
Start a CDR encapsulation. All subsequent writes will place data in the encapsulation until endEncapsulation is called. This will write the size of the encapsulation.



close
public void close()(Code)



configure
public void configure(Configuration configuration)(Code)
This stream is self-configuring, i.e. configure() is private and only called from the constructor TODO this led to situations were streams weren't configured properly (see callers of configure) so i changed the method to be public. should be fixed. alphonse 11.05.2006



create_input_stream
public org.omg.CORBA.portable.InputStream create_input_stream()(Code)
The following operations are from OutputStream *



endEncapsulation
final public void endEncapsulation()(Code)
Terminate the encapsulation by writing its length to its beginning.



finalize
protected void finalize() throws Throwable(Code)



getBufferCopy
public byte[] getBufferCopy()(Code)



getGIOPMinor
public int getGIOPMinor()(Code)



increaseSize
final public void increaseSize(int amount)(Code)
Add amount empty space



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



reduceSize
final public void reduceSize(int amount)(Code)



reset
public void reset()(Code)



setBuffer
public void setBuffer(byte[] b)(Code)



setBufferWithoutReset
public void setBufferWithoutReset(byte[] b, int size)(Code)



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



setGIOPMinor
public void setGIOPMinor(int giop_minor)(Code)



size
public int size()(Code)



skip
final public void skip(int step)(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



write
public void write(OutputStream out, int start, int length) throws IOException(Code)
write the contents of this CDR stream to the output stream, includes all deferred writes (e.g., for byte arrays)... called by, e.g. GIOPConnection to write directly to the wire.



write_IOR
public void write_IOR(IOR ior)(Code)



write_Object
public void write_Object(org.omg.CORBA.Object value)(Code)



write_Principal
final public void write_Principal(org.omg.CORBA.Principal value)(Code)



write_TypeCode
final public void write_TypeCode(org.omg.CORBA.TypeCode typeCode)(Code)



write_abstract_interface
public void write_abstract_interface(java.lang.Object object)(Code)
Writes an abstract interface to this stream. The abstract interface is written 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.



write_any
final public void write_any(org.omg.CORBA.Any value)(Code)



write_boolean
final public void write_boolean(boolean value)(Code)



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



write_char
final public void write_char(char c)(Code)
write_char writes a character to the output stream. If codeset translation is active then it will use String and an encoding to get the bytes. It can then do a test for whether to throw DATA_CONVERSION.
Parameters:
  c - a char value



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



write_double
final public void write_double(double value)(Code)



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



write_fixed
final public void write_fixed(BigDecimal value, short digits, short scale)(Code)



write_fixed
final public void write_fixed(java.math.BigDecimal value)(Code)



write_float
final public void write_float(float value)(Code)



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



write_long
final public void write_long(int value)(Code)



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



write_longlong
final public void write_longlong(long value)(Code)



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



write_octet
final public void write_octet(byte value)(Code)



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



write_short
final public void write_short(short value)(Code)



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



write_string
final public void write_string(String s)(Code)
write_string writes a string to the output stream. It is optimised for whether it is writing a blank string or for whether codeset translation is active.
Parameters:
  s - a String value



write_ulong
final public void write_ulong(int value)(Code)



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



write_ulonglong
final public void write_ulonglong(long value)(Code)



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



write_ushort
final public void write_ushort(short value)(Code)



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



write_value
final public void write_value(org.omg.CORBA.TypeCode typeCode, org.omg.CORBA.portable.InputStream input)(Code)
Reads a value of the type indicated by tc from the InputStream in and remarshals it to this CDROutputStream. Called from Any.



write_value
public void write_value(java.io.Serializable value)(Code)
Writes the serialized state of `value' to this stream.



write_value
public void write_value(java.io.Serializable value, org.omg.CORBA.portable.BoxedValueHelper factory)(Code)



write_value
public void write_value(java.io.Serializable value, java.lang.Class clazz)(Code)



write_value
public void write_value(java.io.Serializable value, String repository_id)(Code)



write_wchar
final public void write_wchar(char c)(Code)



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



write_wstring
final public void write_wstring(String s)(Code)



Methods inherited from org.omg.CORBA_2_3.portable.OutputStream
public void write_abstract_interface(java.lang.Object object)(Code)(Java Doc)
public void write_value(java.io.Serializable value)(Code)(Java Doc)
public void write_value(java.io.Serializable value, java.lang.String rep_id)(Code)(Java Doc)
public void write_value(java.io.Serializable value, Class clz)(Code)(Java Doc)
public void write_value(java.io.Serializable value, org.omg.CORBA.portable.BoxedValueHelper factory)(Code)(Java Doc)

Methods inherited from org.omg.CORBA.portable.OutputStream
abstract public InputStream create_input_stream()(Code)(Java Doc)
public org.omg.CORBA.ORB orb()(Code)(Java Doc)
public void write(int b) throws java.io.IOException(Code)(Java Doc)
public void write_Context(org.omg.CORBA.Context ctx, org.omg.CORBA.ContextList contexts)(Code)(Java Doc)
abstract public void write_Object(org.omg.CORBA.Object value)(Code)(Java Doc)
public void write_Principal(org.omg.CORBA.Principal value)(Code)(Java Doc)
abstract public void write_TypeCode(org.omg.CORBA.TypeCode value)(Code)(Java Doc)
abstract public void write_any(org.omg.CORBA.Any value)(Code)(Java Doc)
abstract public void write_boolean(boolean value)(Code)(Java Doc)
abstract public void write_boolean_array(boolean[] value, int offset, int length)(Code)(Java Doc)
abstract public void write_char(char value)(Code)(Java Doc)
abstract public void write_char_array(char[] value, int offset, int length)(Code)(Java Doc)
abstract public void write_double(double value)(Code)(Java Doc)
abstract public void write_double_array(double[] value, int offset, int length)(Code)(Java Doc)
public void write_fixed(java.math.BigDecimal value)(Code)(Java Doc)
public void write_fixed(java.math.BigDecimal value, short digits, short scale)(Code)(Java Doc)
abstract public void write_float(float value)(Code)(Java Doc)
abstract public void write_float_array(float[] value, int offset, int length)(Code)(Java Doc)
abstract public void write_long(int value)(Code)(Java Doc)
abstract public void write_long_array(int[] value, int offset, int length)(Code)(Java Doc)
abstract public void write_longlong(long value)(Code)(Java Doc)
abstract public void write_longlong_array(long[] value, int offset, int length)(Code)(Java Doc)
abstract public void write_octet(byte value)(Code)(Java Doc)
abstract public void write_octet_array(byte[] value, int offset, int length)(Code)(Java Doc)
abstract public void write_short(short value)(Code)(Java Doc)
abstract public void write_short_array(short[] value, int offset, int length)(Code)(Java Doc)
abstract public void write_string(String value)(Code)(Java Doc)
abstract public void write_ulong(int value)(Code)(Java Doc)
abstract public void write_ulong_array(int[] value, int offset, int length)(Code)(Java Doc)
abstract public void write_ulonglong(long value)(Code)(Java Doc)
abstract public void write_ulonglong_array(long[] value, int offset, int length)(Code)(Java Doc)
abstract public void write_ushort(short value)(Code)(Java Doc)
abstract public void write_ushort_array(short[] value, int offset, int length)(Code)(Java Doc)
abstract public void write_wchar(char value)(Code)(Java Doc)
abstract public void write_wchar_array(char[] value, int offset, int length)(Code)(Java Doc)
abstract public void write_wstring(String value)(Code)(Java Doc)

Methods inherited from java.io.OutputStream
public void close() throws IOException(Code)(Java Doc)
public void flush() throws IOException(Code)(Java Doc)
abstract public void write(int b) throws IOException(Code)(Java Doc)
public void write(byte b) throws IOException(Code)(Java Doc)
public void write(byte b, int off, int len) 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.