public interface TextMappingFormat extends MappingFormat
Modifier and Type | Method and Description |
---|---|
default MappingsReader |
createReader(InputStream stream)
Creates a
MappingsReader from the given InputStream
for the mapping format. |
default MappingsReader |
createReader(Path path)
Creates a
MappingsReader for the given mappings file Path
for the mapping format. |
MappingsReader |
createReader(Reader reader)
Creates a
MappingsReader from the given Reader
for the mapping format. |
default MappingsWriter |
createWriter(OutputStream stream)
Creates a
MappingsWriter from the given OutputStream
for the mapping format. |
default MappingsWriter |
createWriter(Path path)
Creates a
MappingsWriter for the given mappings file Path
for the mapping format. |
MappingsWriter |
createWriter(Writer writer)
Creates a
MappingsWriter from the given Writer
for the mapping format. |
getStandardFileExtension, read, read, write
MappingsReader createReader(Reader reader) throws IOException
MappingsReader
from the given Reader
for the mapping format.reader
- The readerIOException
- Should an I/O issue occurUnsupportedOperationException
- If the format does not support readingdefault MappingsReader createReader(InputStream stream) throws IOException
MappingFormat
MappingsReader
from the given InputStream
for the mapping format.createReader
in interface MappingFormat
stream
- The input streamIOException
- Should an I/O issue occurdefault MappingsReader createReader(Path path) throws IOException
MappingFormat
MappingsReader
for the given mappings file Path
for the mapping format.createReader
in interface MappingFormat
path
- The path to the mappings fileIOException
- Should an I/O issue occurMappingsWriter createWriter(Writer writer) throws IOException
MappingsWriter
from the given Writer
for the mapping format.writer
- The writerIOException
- Should an I/O issue occurUnsupportedOperationException
- If the format does not support writingdefault MappingsWriter createWriter(OutputStream stream) throws IOException
MappingFormat
MappingsWriter
from the given OutputStream
for the mapping format.createWriter
in interface MappingFormat
stream
- The output streamIOException
- Should an I/O issue occurdefault MappingsWriter createWriter(Path path) throws IOException
MappingFormat
MappingsWriter
for the given mappings file Path
for the mapping format.createWriter
in interface MappingFormat
path
- The path to the mappings fileIOException
- Should an I/O issue occur