public abstract class MappingsWriter extends Object implements Closeable
Each mappings writer will be designed for a specific mapping format, and intended to be used with try-for-resources.
TextMappingsWriter,
BinaryMappingsWriter| Modifier and Type | Field and Description |
|---|---|
protected static Comparator<FieldMapping> |
ALPHABETISE_FIELDS
Deprecated.
0.5.5 Use
getConfig() MappingsWriterConfig.getFieldMappingComparator()
instead |
protected static Comparator<Mapping> |
ALPHABETISE_MAPPINGS
Deprecated.
0.5.5 Use
getConfig() MappingsWriterConfig.getClassMappingComparator()
instead |
protected static Comparator<MethodMapping> |
ALPHABETISE_METHODS
Deprecated.
0.5.5 Use
getConfig() MappingsWriterConfig.getMethodMappingComparator()
instead |
protected MappingsWriterConfig |
config |
| Constructor and Description |
|---|
MappingsWriter() |
| Modifier and Type | Method and Description |
|---|---|
MappingsWriterConfig |
getConfig()
Gets the active
writer configuration for
this mappings writer. |
void |
setConfig(MappingsWriterConfig config)
Sets the active
writer configuration for
this mappings writer - allowing the output of the writer to be fine-tuned
to fit the environment in use. |
abstract void |
write(MappingSet mappings)
Writes the given mappings to the previously given output.
|
@Deprecated protected static final Comparator<Mapping> ALPHABETISE_MAPPINGS
getConfig() MappingsWriterConfig.getClassMappingComparator()
insteadComparator used to alphabetise a collection of Mappings.@Deprecated protected static final Comparator<FieldMapping> ALPHABETISE_FIELDS
getConfig() MappingsWriterConfig.getFieldMappingComparator()
insteadComparator used to alphabetise a collection of FieldMappings.@Deprecated protected static final Comparator<MethodMapping> ALPHABETISE_METHODS
getConfig() MappingsWriterConfig.getMethodMappingComparator()
insteadComparator used to alphabetise a collection of MethodMappings.protected MappingsWriterConfig config
public MappingsWriterConfig getConfig()
writer configuration for
this mappings writer.public void setConfig(MappingsWriterConfig config)
writer configuration for
this mappings writer - allowing the output of the writer to be fine-tuned
to fit the environment in use.config - The writer configurationNullPointerException - If config is nullpublic abstract void write(MappingSet mappings) throws IOException
mappings - The mapping setIOException - Should an IO issue occur