Ejemplo n.º 1
0
        /// <summary>
        /// Scans the stream for parts that can be parsed into the obj
        /// </summary>
        /// <param name="oParseStream">The input stream to read from</param>
        /// <returns>Returns true if all or part of the stream could be
        /// parsed into the obj</returns>
        public bool scan(ParseStream oParseStream)
        {
            if (oParseStream == null)
            {
                return false;
            }

            ParseStream oStream = oParseStream.begin();

            if (doScan(oStream))
            {
                setParsedValue(oParseStream.getConsumed(oStream));
                oParseStream.end(oStream);
                return true;
            }

            return false;
        }