| Constructor and Description |
|---|
Metadata.Builder() |
| Modifier and Type | Method and Description |
|---|---|
static Metadata |
fromFile(File metadataFile)
This method parses a metadata.json file and returns a new Metadata instance containing the
metadata that has been parsed.
|
static Metadata |
fromFile(Path metadataFile) |
static Metadata |
fromJson(com.fasterxml.jackson.databind.JsonNode metadataRootNode)
This method is called from the fromStream method to parse json from a stream.
|
static Metadata |
fromJsonString(String metadata,
boolean allowSingleQuotes)
This method is called from the fromStream method to parse json from a stream.
|
static Metadata |
fromStream(InputStream metadataInputStream)
This method is called from the fromFile method to parse json from a stream.
|
public static Metadata fromFile(File metadataFile) throws IOException
metadataFile - The absolute path to the metadata.json file to be parsed.IOExceptionpublic static Metadata fromFile(@Nonnull Path metadataFile) throws IOException
IOExceptionpublic static Metadata fromStream(InputStream metadataInputStream) throws IOException
metadataInputStream - An InputStream to read the JSON metadata from.IOExceptionpublic static Metadata fromJson(com.fasterxml.jackson.databind.JsonNode metadataRootNode) throws IOException
metadataRootNode - the JSON metadata from.IOExceptionpublic static Metadata fromJsonString(String metadata, boolean allowSingleQuotes) throws IOException
metadata - the JSON metadata.IOExceptionCopyright © 2013. All Rights Reserved.