Package org.apache.graphar.util
Interface Yaml
-
- All Superinterfaces:
com.alibaba.fastffi.FFIPointer
,com.alibaba.fastffi.FFIType
public interface Yaml extends com.alibaba.fastffi.FFIPointer
A wrapper of ::Yaml::Node to provide functions to parse yaml.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Yaml.Static
-
Method Summary
Static Methods Modifier and Type Method Description static Result<StdSharedPtr<Yaml>>
load(StdString input)
Loads the input string as Yaml instance.static Result<StdSharedPtr<Yaml>>
loadFile(StdString fileName)
Loads the input file as a single Yaml instance.
-
-
-
Method Detail
-
load
static Result<StdSharedPtr<Yaml>> load(StdString input)
Loads the input string as Yaml instance.- Returns:
- Status::YamlError if input string can not be loaded(malformed).
-
loadFile
static Result<StdSharedPtr<Yaml>> loadFile(StdString fileName)
Loads the input file as a single Yaml instance.- Returns:
- Status::YamlError if the file can not be loaded(malformed).
-
-