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