public final class EncapsulationUtility extends Object
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
getEncapsulationStream(ORB orb,
InputStream is)
Helper method to read the octet array from is, deencapsulate it,
and return
as another InputStream.
|
static <E extends Identifiable> |
readIdentifiableSequence(List<E> container,
IdentifiableFactoryFinder<E> finder,
InputStream istr)
Read the count from is, then read count Identifiables from
is using the factory.
|
static byte[] |
readOctets(InputStream is)
Helper method that reads an octet array from an input stream.
|
static void |
writeEncapsulation(WriteContents obj,
OutputStream os) |
static <E extends Identifiable> |
writeIdentifiableSequence(List<E> container,
OutputStream os)
Write all Identifiables that we contain to os.
|
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.
|
public static <E extends Identifiable> void readIdentifiableSequence(List<E> container, IdentifiableFactoryFinder<E> finder, InputStream istr)
public static <E extends Identifiable> void writeIdentifiableSequence(List<E> container, OutputStream os)
public static void writeOutputStream(OutputStream dataStream, OutputStream os)
public static InputStream getEncapsulationStream(ORB orb, InputStream is)
public static byte[] readOctets(InputStream is)
public static void writeEncapsulation(WriteContents obj, OutputStream os)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.