public class ProgramLoader extends Object
| Constructor and Description |
|---|
ProgramLoader()
Constructor with lax and default behavior.
|
ProgramLoader(boolean requireFieldId,
boolean requireEnumValue,
boolean allowLanguageReservedNames)
Constructor with specified options.
|
| Modifier and Type | Method and Description |
|---|---|
GlobalRegistry |
getGlobalRegistry() |
ProgramRegistry |
load(File file) |
ProgramRegistry |
load(Path file)
Load a thrift definition from file including all it's dependencies.
|
public ProgramLoader()
public ProgramLoader(boolean requireFieldId,
boolean requireEnumValue,
boolean allowLanguageReservedNames)
requireFieldId - If field IDs are required.requireEnumValue - If enum values are required.allowLanguageReservedNames - If language-reserved names are allowed.public ProgramRegistry load(File file) throws IOException
IOExceptionpublic ProgramRegistry load(Path file) throws IOException
file - The file to load.IOException - If the file could not be read or parsed.public GlobalRegistry getGlobalRegistry()
Copyright © 2015–2020 morimekta.net. All rights reserved.