| java.lang.Object com.sun.corba.se.impl.ior.EncapsulationUtility
EncapsulationUtility | public class EncapsulationUtility (Code) | | This static utility class contains various utility methods for reading and
writing CDR encapsulations.
author: Ken Cavanaugh |
Method Summary | |
public static InputStream | getEncapsulationStream(InputStream is) Helper method to read the octet array from is, deencapsulate it,
and return
as another InputStream. | public static void | readIdentifiableSequence(List container, IdentifiableFactoryFinder finder, InputStream istr) Read the count from is, then read count Identifiables from
is using the factory. | public static byte[] | readOctets(InputStream is) Helper method that reads an octet array from an input stream. | public static void | writeEncapsulation(WriteContents obj, OutputStream os) | public static void | writeIdentifiableSequence(List container, OutputStream os) Write all Identifiables that we contain to os. | public static void | writeOutputStream(OutputStream dataStream, OutputStream os) Helper method that is used to extract data from an output
stream and write the data to another output stream. |
getEncapsulationStream | public static InputStream getEncapsulationStream(InputStream is)(Code) | | Helper method to read the octet array from is, deencapsulate it,
and return
as another InputStream. This must be called inside the
constructor of a derived class to obtain the correct stream
for unmarshalling data.
|
readIdentifiableSequence | public static void readIdentifiableSequence(List container, IdentifiableFactoryFinder finder, InputStream istr)(Code) | | Read the count from is, then read count Identifiables from
is using the factory. Add each constructed Identifiable to container.
|
readOctets | public static byte[] readOctets(InputStream is)(Code) | | Helper method that reads an octet array from an input stream.
Defined as static here so that it can be used in another class.
|
writeEncapsulation | public static void writeEncapsulation(WriteContents obj, OutputStream os)(Code) | | |
writeIdentifiableSequence | public static void writeIdentifiableSequence(List container, OutputStream os)(Code) | | Write all Identifiables that we contain to os. The total
length must be written before this method is called.
|
writeOutputStream | public static void writeOutputStream(OutputStream dataStream, OutputStream os)(Code) | | Helper method that is used to extract data from an output
stream and write the data to another output stream. Defined
as static so that it can be used in another class.
|
|
|