public enum ResultFormat extends Enum<ResultFormat>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResultFormat.Writer |
| Enum Constant and Description |
|---|
ARRAY |
ARRAYLINES |
CSV |
OBJECT |
OBJECTLINES |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
contentType() |
abstract ResultFormat.Writer |
createFormatter(OutputStream outputStream,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
static ResultFormat |
fromString(String name) |
String |
toString() |
static ResultFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResultFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultFormat ARRAY
public static final ResultFormat ARRAYLINES
public static final ResultFormat CSV
public static final ResultFormat OBJECT
public static final ResultFormat OBJECTLINES
public static ResultFormat[] values()
for (ResultFormat c : ResultFormat.values()) System.out.println(c);
public static ResultFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract String contentType()
public abstract ResultFormat.Writer createFormatter(OutputStream outputStream, com.fasterxml.jackson.databind.ObjectMapper jsonMapper) throws IOException
IOExceptionpublic String toString()
toString in class Enum<ResultFormat>public static ResultFormat fromString(String name)
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.