@Immutable public class MarshallUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MarshallUtil.EnumBuilder<E extends Enum<E>> |
| Constructor and Description |
|---|
MarshallUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
marshallCollection(Collection<?> c,
ObjectOutput out) |
static <E extends Enum<E>> |
marshallEnum(E e,
ObjectOutput output) |
static void |
marshallMap(Map<?,?> map,
ObjectOutput out) |
static <E extends Enum<E>> |
unmarshallEnum(ObjectInput input,
MarshallUtil.EnumBuilder<E> builder) |
static void |
unmarshallMap(Map<Object,Object> map,
ObjectInput in) |
public static void marshallCollection(Collection<?> c, ObjectOutput out) throws IOException
IOExceptionpublic static void marshallMap(Map<?,?> map, ObjectOutput out) throws IOException
IOExceptionpublic static void unmarshallMap(Map<Object,Object> map, ObjectInput in) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static <E extends Enum<E>> void marshallEnum(E e, ObjectOutput output) throws IOException
IOExceptionpublic static <E extends Enum<E>> E unmarshallEnum(ObjectInput input, MarshallUtil.EnumBuilder<E> builder) throws IOException
IOExceptionCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.