Package org.cadixdev.lorenz.io.srg.csrg
Class CSrgMappingFormat
- java.lang.Object
-
- org.cadixdev.lorenz.io.srg.csrg.CSrgMappingFormat
-
- All Implemented Interfaces:
MappingFormat,TextMappingFormat
public class CSrgMappingFormat extends java.lang.Object implements TextMappingFormat
The CSRG mapping format.- Since:
- 0.4.0
-
-
Constructor Summary
Constructors Constructor Description CSrgMappingFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MappingsReadercreateReader(java.io.Reader reader)Creates aMappingsReaderfrom the givenReaderfor the mapping format.MappingsWritercreateWriter(java.io.Writer writer)Creates aMappingsWriterfrom the givenWriterfor the mapping format.java.util.Optional<java.lang.String>getStandardFileExtension()Gets the typically used file extension for the format, if available.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cadixdev.lorenz.io.MappingFormat
read, read, write, write
-
Methods inherited from interface org.cadixdev.lorenz.io.TextMappingFormat
createReader, createReader, createWriter, createWriter
-
-
-
-
Method Detail
-
createReader
public MappingsReader createReader(java.io.Reader reader)
Description copied from interface:TextMappingFormatCreates aMappingsReaderfrom the givenReaderfor the mapping format.- Specified by:
createReaderin interfaceTextMappingFormat- Parameters:
reader- The reader- Returns:
- The mapping reader
-
createWriter
public MappingsWriter createWriter(java.io.Writer writer)
Description copied from interface:TextMappingFormatCreates aMappingsWriterfrom the givenWriterfor the mapping format.- Specified by:
createWriterin interfaceTextMappingFormat- Parameters:
writer- The writer- Returns:
- The mapping writer
-
getStandardFileExtension
public java.util.Optional<java.lang.String> getStandardFileExtension()
Description copied from interface:MappingFormatGets the typically used file extension for the format, if available.- Specified by:
getStandardFileExtensionin interfaceMappingFormat- Returns:
- The standard file extension
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-