org.drools.planner.examples.common.persistence
Class AbstractTxtSolutionImporter.TxtInputBuilder
java.lang.Object
org.drools.planner.examples.common.persistence.AbstractTxtSolutionImporter.TxtInputBuilder
- Direct Known Subclasses:
- CurriculumCourseSolutionImporter.CurriculumCourseInputBuilder, ExaminationSolutionImporter.ExaminationInputBuilder, Manners2009SolutionImporter.Manners2009InputBuilder, PatientAdmissionScheduleSolutionImporter.PatientAdmissionScheduleInputBuilder, TravelingTournamentSolutionImporter.TravelingTournamentInputBuilder, TspSolutionImporter.TravelingSalesmanTourInputBuilder
- Enclosing class:
- AbstractTxtSolutionImporter
public abstract class AbstractTxtSolutionImporter.TxtInputBuilder
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bufferedReader
protected BufferedReader bufferedReader
AbstractTxtSolutionImporter.TxtInputBuilder
public AbstractTxtSolutionImporter.TxtInputBuilder()
setBufferedReader
public void setBufferedReader(BufferedReader bufferedReader)
readSolution
public abstract Solution readSolution()
throws IOException
- Throws:
IOException
readEmptyLine
public void readEmptyLine()
throws IOException
- Throws:
IOException
readConstantLine
public void readConstantLine(String constantValue)
throws IOException
- Throws:
IOException
readUntilConstantLine
public void readUntilConstantLine(String constantValue)
throws IOException
- Throws:
IOException
readIntegerValue
public int readIntegerValue()
throws IOException
- Throws:
IOException
readIntegerValue
public int readIntegerValue(String prefix)
throws IOException
- Throws:
IOException
readIntegerValue
public int readIntegerValue(String prefix,
String suffix)
throws IOException
- Throws:
IOException
readStringValue
public String readStringValue()
throws IOException
- Throws:
IOException
readStringValue
public String readStringValue(String prefix)
throws IOException
- Throws:
IOException
readStringValue
public String readStringValue(String prefix,
String suffix)
throws IOException
- Throws:
IOException
removePrefixSuffixFromLine
public String removePrefixSuffixFromLine(String line,
String prefix,
String suffix)
splitBySpace
public String[] splitBySpace(String line)
splitBySpace
public String[] splitBySpace(String line,
int numberOfTokens)
splitByPipeline
public String[] splitByPipeline(String line,
int numberOfTokens)
Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.