public class FileParsingTextSource extends Object implements TextSource
Constructor and Description |
---|
FileParsingTextSource(File data,
TextSource fallback)
Reads text from tab-separated file.
|
FileParsingTextSource(InputStream data,
TextSource fallback)
Reads text from tab-separated stream.
|
FileParsingTextSource(Reader data,
TextSource fallback) |
FileParsingTextSource(com.google.common.base.Supplier<InputStream> dataSupplier,
TextSource fallback)
Reads text from streams.
|
Modifier and Type | Method and Description |
---|---|
String |
getText(Monitorable<?> monitorable,
MetricName mappedName) |
public FileParsingTextSource(File data, TextSource fallback)
public FileParsingTextSource(InputStream data, TextSource fallback)
public FileParsingTextSource(Reader data, TextSource fallback)
public FileParsingTextSource(com.google.common.base.Supplier<InputStream> dataSupplier, TextSource fallback)
Supplier
to allow
easy provision of classpath resources.public String getText(Monitorable<?> monitorable, MetricName mappedName)
getText
in interface TextSource
Copyright © 2009–2019 Performance Co-Pilot. All rights reserved.