Class ProcessOutputAlignmentCollector
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_base.external.cli.process.ProcessOutputAlignmentCollector
- All Implemented Interfaces:
ProcessOutputConsumer,AutoCloseable
A collector which searches for an alignment URL or creates a file with the content of the lines and returns the url of this file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Fileprivate booleanprivate Stringprivate static final org.slf4j.Loggerprivate static final Patternprivate BufferedWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static URLfindLastURL(String text) getURL()voidprocessOutput(String line) Processes one line of output.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
URL_PATTERN
-
alignmentFile
-
writer
-
lastLine
-
isFirstLine
private boolean isFirstLine
-
-
Constructor Details
-
ProcessOutputAlignmentCollector
public ProcessOutputAlignmentCollector()
-
-
Method Details
-
processOutput
Description copied from interface:ProcessOutputConsumerProcesses one line of output.- Specified by:
processOutputin interfaceProcessOutputConsumer- Parameters:
line- the whole text line from an external process.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceProcessOutputConsumer- Throws:
Exception
-
getURL
-
findLastURL
-