Package org.cadixdev.lorenz.io
Class MappingsReader
- java.lang.Object
-
- org.cadixdev.lorenz.io.MappingsReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
BinaryMappingsReader,TextMappingsReader
public abstract class MappingsReader extends java.lang.Object implements java.io.CloseableRepresents a reader that reads de-obfuscation mappings.- Since:
- 0.4.0
- See Also:
TextMappingsReader,BinaryMappingsReader
-
-
Constructor Summary
Constructors Constructor Description MappingsReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description MappingSetread()Reads mappings from the previously givenInputStream, to a newMappingSet.abstract MappingSetread(MappingSet mappings)Reads mappings from the previously givenInputStream, to the givenMappingSet.
-
-
-
Method Detail
-
read
public MappingSet read() throws java.io.IOException
Reads mappings from the previously givenInputStream, to a newMappingSet.- Returns:
- The mapping set
- Throws:
java.io.IOException- Should an I/O issue occur
-
read
public abstract MappingSet read(MappingSet mappings) throws java.io.IOException
Reads mappings from the previously givenInputStream, to the givenMappingSet.- Parameters:
mappings- The mapping set- Returns:
- The mapping set, to allow for chaining
- Throws:
java.io.IOException- Should an I/O issue occur
-
-