ReaderBackend instead.@Deprecated
public abstract class MojoReaderBackend
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
protected ai.h2o.mojos.runtime.api.backend.ReaderBackend |
backend
Deprecated.
|
static java.lang.String |
DEFAULT_BASE_DIR
Deprecated.
Default top-level directory, where mojo content is stored.
|
static java.lang.String |
DEFAULT_PROTO_PIPELINE_FILE_PATH
Deprecated.
Default file path for proto-based pipeline
|
static java.lang.String |
DEFAULT_PROTO_PIPELINE_FILENAME
Deprecated.
|
static java.lang.String |
DEFAULT_TOML_PIPELINE_FILE_PATH
Deprecated.
Default file path for toml-based pipeline
|
static java.lang.String |
DEFAULT_TOML_PIPELINE_FILENAME
Deprecated.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MojoReaderBackend(ai.h2o.mojos.runtime.api.backend.ReaderBackend backend,
java.lang.String baseDir,
java.lang.String ignored,
java.lang.String pipelineFileName)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
static boolean |
endsWithSeparator(java.lang.String path)
Deprecated.
This is very safe way to check if a path ends with separator character, no matter which platform was used to produce the path and which platform we use it on.
|
boolean |
exists(java.lang.String filename)
Deprecated.
|
java.lang.String |
getBaseDir()
Deprecated.
|
byte[] |
getBinaryFile(java.lang.String filename)
Deprecated.
Retrieve binary content inside the mojo, as a
byte[] array. |
java.io.InputStream |
getFile(java.lang.String filename)
Deprecated.
Retrieve content inside the mojo, as a
InputStream. |
java.lang.String |
getPipelineFileName()
Deprecated.
Get pipeline file path relative to baseDir.
|
java.lang.String |
getSeparator()
Deprecated.
use just slash (
/) instead, it is supported on all systems equally well, or use File.separator if that makes you feel better |
java.io.BufferedReader |
getTextFile(java.lang.String filename)
Deprecated.
Retrieve text content inside the mojo, as a
BufferedReader. |
ai.h2o.mojos.runtime.api.backend.ReaderBackend |
internalGetReaderBackend()
Deprecated.
Do not use.
|
public static java.lang.String DEFAULT_BASE_DIR
Default top-level directory, where mojo content is stored.
public static java.lang.String DEFAULT_PROTO_PIPELINE_FILENAME
public static java.lang.String DEFAULT_TOML_PIPELINE_FILENAME
public static java.lang.String DEFAULT_PROTO_PIPELINE_FILE_PATH
Default file path for proto-based pipeline
public static java.lang.String DEFAULT_TOML_PIPELINE_FILE_PATH
Default file path for toml-based pipeline
protected final ai.h2o.mojos.runtime.api.backend.ReaderBackend backend
protected MojoReaderBackend(ai.h2o.mojos.runtime.api.backend.ReaderBackend backend,
java.lang.String baseDir,
java.lang.String ignored,
java.lang.String pipelineFileName)
public final void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic final java.io.InputStream getFile(java.lang.String filename)
throws java.io.IOException
Retrieve content inside the mojo, as a InputStream.
java.io.IOExceptionpublic final java.io.BufferedReader getTextFile(java.lang.String filename)
throws java.io.IOException
Retrieve text content inside the mojo, as a BufferedReader.
java.io.IOExceptionpublic final byte[] getBinaryFile(java.lang.String filename)
throws java.io.IOException
Retrieve binary content inside the mojo, as a byte[] array.
java.io.IOExceptionpublic final boolean exists(java.lang.String filename)
public ai.h2o.mojos.runtime.api.backend.ReaderBackend internalGetReaderBackend()
Do not use. Not useful outside mojo2 project.
Exists only for retaining API compatibility inside mojo2 classes, and will be removed in future versions, without notice, deprecation phase and replacement.
public java.lang.String getPipelineFileName()
Get pipeline file path relative to baseDir.
public java.lang.String getBaseDir()
@Deprecated public java.lang.String getSeparator()
/) instead, it is supported on all systems equally well, or use File.separator if that makes you feel betterpublic static boolean endsWithSeparator(java.lang.String path)
This is very safe way to check if a path ends with separator character, no matter which platform was used to produce the path and which platform we use it on.
path - -