本文整理匯總了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);
}