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
Modifier and TypeFieldDescriptionprivate File
private boolean
private String
private static final org.slf4j.Logger
private static final Pattern
private BufferedWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static URL
findLastURL
(String text) getURL()
void
processOutput
(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:ProcessOutputConsumer
Processes one line of output.- Specified by:
processOutput
in interfaceProcessOutputConsumer
- Parameters:
line
- the whole text line from an external process.
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceProcessOutputConsumer
- Throws:
Exception
-
getURL
-
findLastURL
-