public OpaqueEndpointI(short type, Ice.InputStream s) { _type = type; _rawEncoding = s.getEncoding(); int sz = s.getEncapsulationSize(); _rawBytes = new byte[sz]; s.readBlob(_rawBytes); calcHashValue(); }
public static void dumpStream(Ice.InputStream stream) { int pos = stream.pos(); stream.pos(0); byte[] data = new byte[stream.size()]; stream.readBlob(data); dumpOctets(data); stream.pos(pos); }