예제 #1
0
파일: IOR.java 프로젝트: Blueash/gcc
 /**
  * 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();
   }
 }
예제 #2
0
파일: IOR.java 프로젝트: Blueash/gcc
 /**
  * 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);
 }