Beispiel #1
0
        } // !Load()

        /// <summary>
        /// Loads an order from the given file.
        /// If the file does not exist, a FileNotFoundException exception is raised.
        /// </summary>
        /// <param name="fileName"></param>
        /// <returns></returns>
        public static Order Load(string fileName)
        {
            OrderReader reader = new OrderReader();

            return(reader.Load(fileName));
        } // !Load()
Beispiel #2
0
        /// <summary>
        /// Loads an order from the given stream.
        ///
        /// Make sure that the stream is open. After successful reading, the stream is left open, i.e.
        /// the caller of the library has to take care of the stream lifecycle.
        ///
        /// If the stream is not open or readable, an IllegalStreamException exception is raised.
        /// </summary>
        /// <param name="stream"></param>
        /// <returns></returns>
        public static Order Load(Stream stream)
        {
            OrderReader reader = new OrderReader();

            return(reader.Load(stream));
        } // !Load()