public class XLogStreamer extends Object
| Modifier and Type | Class and Description | 
|---|---|
class  | 
XLogStreamer.FileInfo
File along with the modified time which will be used to sort later. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static Pattern | 
gzTimePattern
This pattern matches the end of a gzip filename to have a format like "-YYYY-MM-dd-HH.gz" with capturing groups for each part
 of the date 
 | 
| Constructor and Description | 
|---|
XLogStreamer(XLogFilter logFilter,
                        String logPath,
                        String logFile,
                        long logRotationSecs)  | 
| Modifier and Type | Method and Description | 
|---|---|
BufferedReader | 
makeReader(Date startTime,
                    Date endTime)  | 
void | 
streamLog(Writer writer,
                  Date startTime,
                  Date endTime,
                  int bufferLen)
Gets the files that are modified between startTime and endTime in the given logPath and streams the log after
 applying the filters. 
 | 
public static final Pattern gzTimePattern
public XLogStreamer(XLogFilter logFilter, String logPath, String logFile, long logRotationSecs)
public void streamLog(Writer writer, Date startTime, Date endTime, int bufferLen) throws IOException
writer - startTime - endTime - IOExceptionpublic BufferedReader makeReader(Date startTime, Date endTime) throws IOException
IOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.