Package io.apimap.plugin.jenkins.utils
Class FileReader
- java.lang.Object
-
- io.apimap.plugin.jenkins.utils.FileReader
-
public class FileReader extends Object
-
-
Constructor Summary
Constructors Constructor Description FileReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilePath
filePath(FilePath basePath, String additionalFilePath)
static io.apimap.file.metadata.MetadataFile
metadataFile(FilePath filePath)
static String
readDocument(FilePath filePath)
static InputStream
readFileInDirectory(FilePath file)
static io.apimap.file.taxonomy.TaxonomyFile
taxonomyFile(FilePath filePath)
-
-
-
Method Detail
-
metadataFile
public static io.apimap.file.metadata.MetadataFile metadataFile(FilePath filePath) throws InterruptedException, io.apimap.file.exceptions.MissingRequiredFieldException, io.apimap.file.exceptions.UnsupportedVersionException, IOException, FileUnreadableException
- Throws:
InterruptedException
io.apimap.file.exceptions.MissingRequiredFieldException
io.apimap.file.exceptions.UnsupportedVersionException
IOException
FileUnreadableException
-
taxonomyFile
public static io.apimap.file.taxonomy.TaxonomyFile taxonomyFile(FilePath filePath) throws IOException, InterruptedException, FileUnreadableException
-
readDocument
public static String readDocument(FilePath filePath) throws IncorrectFileTypeException, FileUnreadableException
-
readFileInDirectory
public static InputStream readFileInDirectory(FilePath file) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-