public class JsonMetadataList extends Object
| Constructor and Description |
|---|
JsonMetadataList() |
| Modifier and Type | Method and Description |
|---|---|
static List<Metadata> |
fromJson(Reader reader)
Read metadata from reader.
|
static void |
setPrettyPrinting(boolean prettyPrint) |
static void |
toJson(List<Metadata> metadataList,
Writer writer)
Serializes a Metadata object to Json.
|
public static void toJson(List<Metadata> metadataList, Writer writer) throws IOException
metadataList - list of metadata to writewriter - writerTikaException - if there is an IOException during writingIOExceptionpublic static List<Metadata> fromJson(Reader reader) throws IOException
reader - IOException - in case of parse failure or IO failure with Readerpublic static void setPrettyPrinting(boolean prettyPrint)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.