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
IOException
public static org.jboss.marshalling.Marshaller getMarshaller(org.jboss.marshalling.MarshallingConfiguration config) throws IOException
IOException
public static org.jboss.marshalling.Unmarshaller getUnmarshaller(org.jboss.marshalling.MarshallingConfiguration config) throws IOException
IOException
public static void expectHeader(InputStream input, int expected) throws IOException
IOException
public static void expectHeader(DataInput input, int expected) throws IOException
IOException
public static void expectHeader(byte actual, int expected) throws IOException
IOException
Copyright © 2023 JBoss by Red Hat. All rights reserved.