/** * Write the code set profile information into the given input stream. * * @param profile a stream to write into. */ public void write(AbstractCdrOutput profile) { AbstractCdrOutput encapsulation = profile.createEncapsulation(); narrow.write(encapsulation); wide.write(encapsulation); try { encapsulation.close(); } catch (IOException ex) { throw new InternalError(); } }
/** * Read the code set profile information from the given input stream. * * @param profile a stream to read from. */ public void read(AbstractCdrInput profile) { BufferredCdrInput encapsulation = profile.read_encapsulation(); narrow.read(encapsulation); wide.read(encapsulation); }