public class ProtocolUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
expectHeader(byte actual,
int expected) |
static void |
expectHeader(DataInput input,
int expected) |
static void |
expectHeader(InputStream input,
int expected) |
static org.jboss.marshalling.Marshaller |
getMarshaller(org.jboss.marshalling.MarshallingConfiguration config) |
static org.jboss.marshalling.Unmarshaller |
getUnmarshaller(org.jboss.marshalling.MarshallingConfiguration config) |
static <T> T |
unmarshal(org.jboss.marshalling.Unmarshaller unmarshaller,
Class<T> expectedType) |
public static <T> T unmarshal(org.jboss.marshalling.Unmarshaller unmarshaller,
Class<T> expectedType)
throws IOException
IOExceptionpublic static org.jboss.marshalling.Marshaller getMarshaller(org.jboss.marshalling.MarshallingConfiguration config)
throws IOException
IOExceptionpublic static org.jboss.marshalling.Unmarshaller getUnmarshaller(org.jboss.marshalling.MarshallingConfiguration config)
throws IOException
IOExceptionpublic static void expectHeader(InputStream input, int expected) throws IOException
IOExceptionpublic static void expectHeader(DataInput input, int expected) throws IOException
IOExceptionpublic static void expectHeader(byte actual,
int expected)
throws IOException
IOExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.