1 /*2 * @(#)ObjectKeyFactory.java 1.3 03/12/193 *4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.6 */7 8 package com.sun.corba.se.spi.ior;9 10 import org.omg.CORBA_2_3.portable.InputStream ;11 12 import com.sun.corba.se.spi.ior.ObjectKey ;13 import com.sun.corba.se.spi.ior.ObjectKeyTemplate ;14 15 /** Construct ObjectKey and ObjectKeyTemplate instances from their16 * CDR-marshalled representation.17 */18 public interface ObjectKeyFactory 19 {20 /** Create an ObjectKey from its octet sequence representation.21 */22 ObjectKey create( byte[] key ) ;23 24 /** Create an ObjectKeyTemplate from its representation25 * in an InputStream.26 */27 ObjectKeyTemplate createTemplate( InputStream is ) ;28 }29