Package gamedata

Class ConversionMap.Parser

    • Constructor Detail

      • Parser

        public Parser​(java.lang.String resource,
                      boolean gentle)
               throws java.io.IOException
        Creates a new parser for the specified resource file.
        Parameters:
        resource - the location of the conversion map resource
        gentle - if true, parses in gentle mode
        Throws:
        java.io.IOException - if an I/O error occurs
      • Parser

        public Parser​(java.io.InputStream in,
                      boolean gentle)
               throws java.io.IOException
        Creates a new parser for the specified input stream.
        Parameters:
        in - the input stream to read from
        gentle - if true, parses in gentle mode
        Throws:
        java.io.IOException - if an I/O error occurs
    • Method Detail

      • next

        public ConversionMap.Entry next()
                                 throws java.io.IOException
        Description copied from class: ResourceParser
        Returns the next resource listed in the file, or null if there are no more resources available.
        Specified by:
        next in class ResourceParser<ConversionMap.Entry>
        Returns:
        the next resource
        Throws:
        java.io.IOException - if an I/O error occurs