public enum TransportFormat extends Enum<TransportFormat>
| Enum Constant and Description |
|---|
JSON
JSON (écriture en JSON avec XStream).
|
SERIALIZED
Sérialisation java.
|
XML
XML (avec XStream / XPP).
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkDependencies() |
String |
getCode() |
String |
getMimeType() |
static boolean |
isATransportFormat(String format) |
static void |
pump(InputStream input,
OutputStream output) |
static TransportFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransportFormat |
valueOfIgnoreCase(String transportFormat) |
static TransportFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeSerializableTo(Serializable serializable,
OutputStream output) |
public static final TransportFormat SERIALIZED
public static final TransportFormat XML
public static final TransportFormat JSON
public static TransportFormat[] values()
for (TransportFormat c : TransportFormat.values()) System.out.println(c);
public static TransportFormat 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 static TransportFormat valueOfIgnoreCase(String transportFormat)
public static boolean isATransportFormat(String format)
public static void pump(InputStream input, OutputStream output) throws IOException
IOExceptionpublic String getCode()
public String getMimeType()
public void checkDependencies()
throws IOException
IOExceptionpublic void writeSerializableTo(Serializable serializable, OutputStream output) throws IOException
IOExceptionCopyright © 2008–2018 Emeric Vernat. All rights reserved.