Class TextMappingsReader

    • Constructor Detail

      • TextMappingsReader

        protected TextMappingsReader​(java.io.Reader reader,
                                     java.util.function.Function<MappingSet,​TextMappingsReader.Processor> processor)
        Creates a new mappings reader, for the given Reader.
        Parameters:
        reader - The reader
        processor - The line processor to use for reading the lines
    • Method Detail

      • read

        public MappingSet read​(MappingSet mappings)
        Description copied from class: MappingsReader
        Reads mappings from the previously given InputStream, to the given MappingSet.
        Specified by:
        read in class MappingsReader
        Parameters:
        mappings - The mapping set
        Returns:
        The mapping set, to allow for chaining
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException