예제 #1
0
        }       //	create

        /// <summary>
        ///	Create from decoded hash map string
        /// </summary>
        /// <param name="ctx">context</param>
        /// <param name="hexInput">hex string</param>
        /// <returns>issue</returns>
        //@SuppressWarnings("unchecked")

        public static MIssue Create(Ctx ctx, String hexInput)
        {
            Dictionary <String, String> hmIn = null;

            try                 //	encode inn report
            {
                byte[] byteArray = Secure.ConvertHexString(hexInput);
                java.io.ByteArrayInputStream bIn = new java.io.ByteArrayInputStream(byteArray);
                //MemoryStream bln = new MemoryStream(byteArray);

                java.io.ObjectInputStream oIn = new java.io.ObjectInputStream(bIn);
                //BufferedStream oIn = new BufferedStream(bln);
                hmIn = (Dictionary <String, String>)oIn.readObject();
            }
            catch (Exception e)
            {
                _log.Log(Level.SEVERE, "", e);
                return(null);
            }

            MIssue issue = new MIssue(ctx, (Dictionary <String, String>)hmIn);

            return(issue);
        }       //	create