Package gamedata

Class TileSet.Parser

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    TileSet

    public static final class TileSet.Parser
    extends ResourceParser<TileSet.Entry>
    A parser for tile set files.
    • Constructor Detail

      • Parser

        public Parser​(java.lang.String resource,
                      boolean gentle)
               throws java.io.IOException
        Throws:
        java.io.IOException
      • Parser

        public Parser​(java.io.InputStream in,
                      boolean gentle)
               throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • next

        public TileSet.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<TileSet.Entry>
        Returns:
        the next resource
        Throws:
        java.io.IOException - if an I/O error occurs