Package org.cadixdev.lorenz.io
Interface TextMappingFormat
-
- All Superinterfaces:
MappingFormat
- All Known Implementing Classes:
CSrgMappingFormat,SrgMappingFormat,TSrgMappingFormat,XSrgMappingFormat
public interface TextMappingFormat extends MappingFormat
A representation of a de-obfuscation mapping format serialized as text.- Since:
- 0.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default MappingsReadercreateReader(java.io.InputStream stream)Creates aMappingsReaderfrom the givenInputStreamfor the mapping format.MappingsReadercreateReader(java.io.Reader reader)Creates aMappingsReaderfrom the givenReaderfor the mapping format.default MappingsReadercreateReader(java.nio.file.Path path)Creates aMappingsReaderfor the given mappings filePathfor the mapping format.default MappingsWritercreateWriter(java.io.OutputStream stream)Creates aMappingsWriterfrom the givenOutputStreamfor the mapping format.MappingsWritercreateWriter(java.io.Writer writer)Creates aMappingsWriterfrom the givenWriterfor the mapping format.default MappingsWritercreateWriter(java.nio.file.Path path)Creates aMappingsWriterfor the given mappings filePathfor the mapping format.-
Methods inherited from interface org.cadixdev.lorenz.io.MappingFormat
getStandardFileExtension, read, read, write, write
-
-
-
-
Method Detail
-
createReader
MappingsReader createReader(java.io.Reader reader) throws java.io.IOException
Creates aMappingsReaderfrom the givenReaderfor the mapping format.- Parameters:
reader- The reader- Returns:
- The mapping reader
- Throws:
java.io.IOException- Should an I/O issue occurjava.lang.UnsupportedOperationException- If the format does not support reading
-
createReader
default MappingsReader createReader(java.io.InputStream stream) throws java.io.IOException
Description copied from interface:MappingFormatCreates aMappingsReaderfrom the givenInputStreamfor the mapping format.- Specified by:
createReaderin interfaceMappingFormat- Parameters:
stream- The input stream- Returns:
- The mapping reader
- Throws:
java.io.IOException- Should an I/O issue occur
-
createReader
default MappingsReader createReader(java.nio.file.Path path) throws java.io.IOException
Description copied from interface:MappingFormatCreates aMappingsReaderfor the given mappings filePathfor the mapping format.- Specified by:
createReaderin interfaceMappingFormat- Parameters:
path- The path to the mappings file- Returns:
- The mapping reader
- Throws:
java.io.IOException- Should an I/O issue occur
-
createWriter
MappingsWriter createWriter(java.io.Writer writer) throws java.io.IOException
Creates aMappingsWriterfrom the givenWriterfor the mapping format.- Parameters:
writer- The writer- Returns:
- The mapping writer
- Throws:
java.io.IOException- Should an I/O issue occurjava.lang.UnsupportedOperationException- If the format does not support writing
-
createWriter
default MappingsWriter createWriter(java.io.OutputStream stream) throws java.io.IOException
Description copied from interface:MappingFormatCreates aMappingsWriterfrom the givenOutputStreamfor the mapping format.- Specified by:
createWriterin interfaceMappingFormat- Parameters:
stream- The output stream- Returns:
- The mapping writer
- Throws:
java.io.IOException- Should an I/O issue occur
-
createWriter
default MappingsWriter createWriter(java.nio.file.Path path) throws java.io.IOException
Description copied from interface:MappingFormatCreates aMappingsWriterfor the given mappings filePathfor the mapping format.- Specified by:
createWriterin interfaceMappingFormat- Parameters:
path- The path to the mappings file- Returns:
- The mapping writer
- Throws:
java.io.IOException- Should an I/O issue occur
-
-