public class MojofileMojoReaderBackend extends MojoReaderBackend
The backend serves MOJO content from a ZIP file.
DEFAULT_BASE_DIR, DEFAULT_PROTO_PIPELINE_FILE_PATH, DEFAULT_PROTO_PIPELINE_FILENAME, DEFAULT_TOML_PIPELINE_FILE_PATH, DEFAULT_TOML_PIPELINE_FILENAME| Constructor and Description |
|---|
MojofileMojoReaderBackend(java.lang.String archivename) |
MojofileMojoReaderBackend(java.lang.String archivename,
java.lang.String baseDir) |
MojofileMojoReaderBackend(java.lang.String archivename,
java.lang.String baseDir,
java.lang.String pipelineFileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
exists(java.lang.String filename) |
byte[] |
getBinaryFile(java.lang.String filename)
Retrieve binary content inside the mojo, as a
byte[] array. |
java.lang.String[] |
getDirectoryNames(java.lang.String path)
Retrieve a list of all directory names located in
path, relative to the base directory |
java.io.InputStream |
getFile(java.lang.String filename)
Retrieve content inside the mojo, as a
InputStream. |
java.lang.String[] |
getFileNames(java.lang.String path)
Retrieve a list of all file names located in
path, relative to the base directory |
java.io.BufferedReader |
getTextFile(java.lang.String filename)
Retrieve text content inside the mojo, as a
BufferedReader. |
getBaseDir, getPipelineFile, getPipelineFileName, getSeparatorpublic MojofileMojoReaderBackend(java.lang.String archivename)
throws java.io.IOException
java.io.IOExceptionpublic MojofileMojoReaderBackend(java.lang.String archivename,
java.lang.String baseDir)
throws java.io.IOException
java.io.IOExceptionpublic MojofileMojoReaderBackend(java.lang.String archivename,
java.lang.String baseDir,
java.lang.String pipelineFileName)
throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream getFile(java.lang.String filename)
throws java.io.IOException
MojoReaderBackendRetrieve content inside the mojo, as a InputStream.
getFile in class MojoReaderBackendjava.io.IOExceptionpublic java.io.BufferedReader getTextFile(java.lang.String filename)
throws java.io.IOException
MojoReaderBackendRetrieve text content inside the mojo, as a BufferedReader.
getTextFile in class MojoReaderBackendjava.io.IOExceptionpublic byte[] getBinaryFile(java.lang.String filename)
throws java.io.IOException
MojoReaderBackendRetrieve binary content inside the mojo, as a byte[] array.
getBinaryFile in class MojoReaderBackendjava.io.IOExceptionpublic java.lang.String[] getFileNames(java.lang.String path)
MojoReaderBackendRetrieve a list of all file names located in path, relative to the base directory
getFileNames in class MojoReaderBackendpublic java.lang.String[] getDirectoryNames(java.lang.String path)
MojoReaderBackendRetrieve a list of all directory names located in path, relative to the base directory
getDirectoryNames in class MojoReaderBackendpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic boolean exists(java.lang.String filename)
exists in class MojoReaderBackend