Class IceUtil


  • public class IceUtil
    extends java.lang.Object
    Methods for working with Ice.
    • Constructor Summary

      Constructors 
      Constructor Description
      IceUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Ice.InputStream createSafeInputStream​(Ice.Communicator ic, byte[] data)
      Creates an InputStream with the appropriate encoding.
      static Ice.OutputStream createSafeOutputStream​(Ice.Communicator ic)
      Creates an OutputStream with the appropriate encoding.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IceUtil

        public IceUtil()
    • Method Detail

      • createSafeOutputStream

        public static Ice.OutputStream createSafeOutputStream​(Ice.Communicator ic)
        Creates an OutputStream with the appropriate encoding. This should only be used parsing objects/streams between Ice versions, for example when the data is or will be stored in the database. See ticket:11322
      • createSafeInputStream

        public static Ice.InputStream createSafeInputStream​(Ice.Communicator ic,
                                                            byte[] data)
        Creates an InputStream with the appropriate encoding. This should only be used parsing objects/streams between Ice versions, for example when the data is or will be stored in the database. See ticket:11322