public class BatchUtil extends Object
Constructor and Description |
---|
BatchUtil() |
Modifier and Type | Method and Description |
---|---|
static Serializable |
bytesToSerializableObject(byte[] bytes) |
static <T> T |
clone(T original) |
static byte[] |
objectToBytes(Object obj) |
static String |
propertiesToString(Properties properties) |
static Properties |
stringToProperties(String content) |
static StringBuilder |
toElementSequence(List<?> elements)
Produces a StringBuilder containing concatenated id of elements.
|
public static final String NL
public static String propertiesToString(Properties properties)
public static Properties stringToProperties(String content)
public static byte[] objectToBytes(Object obj) throws IOException
IOException
public static Serializable bytesToSerializableObject(byte[] bytes) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static StringBuilder toElementSequence(List<?> elements)
elements
- step, job, or flow elements, and all elements are of the same type. Either all elements are job,
or all elements are step, or all elements are flowpublic static <T> T clone(T original) throws javax.batch.operations.JobStartException
javax.batch.operations.JobStartException
Copyright © 2014 JBoss by Red Hat. All rights reserved.