public class EncapsulationUtility extends Object
Modifier and Type | Method and Description |
---|---|
static InputStream |
getEncapsulationStream(InputStream is)
Helper method to read the octet array from is, deencapsulate it, and return as another InputStream.
|
static void |
readIdentifiableSequence(List<Object> container,
IdentifiableFactoryFinder 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 void |
writeIdentifiableSequence(List<Object> 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 void readIdentifiableSequence(List<Object> container, IdentifiableFactoryFinder finder, InputStream istr)
public static void writeIdentifiableSequence(List<Object> container, OutputStream os)
public static void writeOutputStream(OutputStream dataStream, OutputStream os)
public static InputStream getEncapsulationStream(InputStream is)
public static byte[] readOctets(InputStream is)
public static void writeEncapsulation(WriteContents obj, OutputStream os)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.