- java.lang.Object
-
- com.microsoft.gctoolkit.io.LogFileMetadata
-
- Direct Known Subclasses:
RotatingLogFileMetadata,SingleLogFileMetadata
public abstract class LogFileMetadata extends Object
Meta-data about aFileDataSource.
-
-
Constructor Summary
Constructors Constructor Description LogFileMetadata(Path path)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intgetNumberOfFiles()Return the number of files.PathgetPath()booleanisDirectory()trueif the file is a directory.booleanisGZip()trueif the file is a GZip compressed file.booleanisPlainText()trueif the file is a regular file.booleanisZip()trueif the file is a Zip compressed file.abstract Stream<LogFileSegment>logFiles()
-
-
-
Constructor Detail
-
LogFileMetadata
public LogFileMetadata(Path path) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getPath
public Path getPath()
-
logFiles
public abstract Stream<LogFileSegment> logFiles()
-
getNumberOfFiles
public abstract int getNumberOfFiles()
Return the number of files. Useful if the file is a compressed file which may contain multiple entries.- Returns:
- The number of files in the file.
-
isZip
public boolean isZip()
trueif the file is a Zip compressed file.- Returns:
trueif the file is a Zip compressed file.
-
isGZip
public boolean isGZip()
trueif the file is a GZip compressed file.- Returns:
trueif the file is a GZip compressed file.
-
isPlainText
public boolean isPlainText()
trueif the file is a regular file.- Returns:
trueif the file is a regular file.
-
isDirectory
public boolean isDirectory()
trueif the file is a directory.- Returns:
trueif the file is a directory.
-
-