public class MappingConstraintReaderWriter
extends java.lang.Object
Constructor and Description |
---|
MappingConstraintReaderWriter() |
Modifier and Type | Method and Description |
---|---|
static java.util.LinkedList<Pair<java.lang.String,java.lang.String>> |
readConstraints(java.lang.String buffer)
Returns a list of mapping constraints.
|
static java.lang.String |
readMappingFile(java.lang.String filename)
Reads mapping constraints from a file.
|
static void |
writeMappingFile(java.io.File file,
java.lang.String content)
Writes content to mapping file.
|
public static java.lang.String readMappingFile(java.lang.String filename) throws java.io.IOException
filename
- Filename of the mapping constraint file.java.io.IOException
- a failed or interrupted I/O operations has occurred.public static java.util.LinkedList<Pair<java.lang.String,java.lang.String>> readConstraints(java.lang.String buffer)
buffer
- constraints in a string.public static void writeMappingFile(java.io.File file, java.lang.String content) throws java.io.IOException
file
- The mapping file to be written.content
- the content to save to the mapping file.java.io.IOException
- If a failed or interrupted I/O operations
has occurred.