本文整理汇总了Java中org.msgpack.core.buffer.MessageBufferInput类的典型用法代码示例。如果您正苦于以下问题:Java MessageBufferInput类的具体用法?Java MessageBufferInput怎么用?Java MessageBufferInput使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MessageBufferInput类属于org.msgpack.core.buffer包,在下文中一共展示了MessageBufferInput类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mergeFrom
import org.msgpack.core.buffer.MessageBufferInput; //导入依赖的package包/类
/**
* Merges the {@code message} from the {@link MessageBufferInput} using the given {@code schema}.
*/
public static <T> void mergeFrom(MessageBufferInput in, T message, Schema<T> schema, boolean numeric) throws IOException
{
MessageUnpacker unpacker = MessagePack.newDefaultUnpacker(in);
try
{
mergeFrom(unpacker, message, schema, numeric);
}
finally
{
unpacker.close();
}
}
示例2: parseListFrom
import org.msgpack.core.buffer.MessageBufferInput; //导入依赖的package包/类
/**
* Parses the {@code messages} from the stream using the given {@code schema}.
*/
public static <T> List<T> parseListFrom(MessageBufferInput in, Schema<T> schema, boolean numeric) throws IOException
{
MessageUnpacker unpacker = MessagePack.newDefaultUnpacker(in);
try
{
return parseListFrom(unpacker, schema, numeric);
}
finally
{
unpacker.close();
}
}
示例3: Unpacker
import org.msgpack.core.buffer.MessageBufferInput; //导入依赖的package包/类
protected Unpacker(MessageBufferInput messageBufferInput, MessagePack.UnpackerConfig unpackerConfig) {
super(messageBufferInput, unpackerConfig);
}
示例4: newPipe
import org.msgpack.core.buffer.MessageBufferInput; //导入依赖的package包/类
/**
* Creates a msgpack pipe from an {@link MessageBufferInput}.
*/
public static Pipe newPipe(MessageBufferInput in, boolean numeric) throws IOException
{
MessageUnpacker unpacker = MessagePack.newDefaultUnpacker(in);
return newPipe(unpacker, numeric);
}