org.msgpack.util.json
Class JSON

java.lang.Object
  extended by org.msgpack.MessagePack
      extended by org.msgpack.util.json.JSON

public class JSON
extends MessagePack


Constructor Summary
JSON()
           
JSON(MessagePack msgpack)
           
 
Method Summary
 BufferPacker createBufferPacker()
          Returns serializer that enables serializing objects into buffer.
 BufferPacker createBufferPacker(int bufferSize)
          Returns serializer that enables serializing objects into buffer.
 BufferUnpacker createBufferUnpacker()
          Returns empty deserializer that enables deserializing buffer.
 BufferUnpacker createBufferUnpacker(byte[] b)
          Returns deserializer that enables deserializing buffer.
 BufferUnpacker createBufferUnpacker(byte[] b, int off, int len)
          Returns deserializer that enables deserializing buffer.
 BufferUnpacker createBufferUnpacker(ByteBuffer bb)
          Returns deserializer that enables deserializing buffer.
 Packer createPacker(OutputStream stream)
          Returns serializer that enables serializing objects into OutputStream object.
 Unpacker createUnpacker(InputStream stream)
          Returns deserializer that enables deserializing InputStream object.
 
Methods inherited from class org.msgpack.MessagePack
convert, convert, lookup, pack, pack, pack, pack, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, register, register, setClassLoader, unconvert, unpack, unpack, unpack, unpack, unpack, unpack, unpack, unpack, unpack, unpack, unregister, unregister, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSON

public JSON()

JSON

public JSON(MessagePack msgpack)
Method Detail

createPacker

public Packer createPacker(OutputStream stream)
Description copied from class: MessagePack
Returns serializer that enables serializing objects into OutputStream object.

Overrides:
createPacker in class MessagePack
Parameters:
stream - output stream
Returns:
stream-based serializer

createBufferPacker

public BufferPacker createBufferPacker()
Description copied from class: MessagePack
Returns serializer that enables serializing objects into buffer.

Overrides:
createBufferPacker in class MessagePack
Returns:
buffer-based serializer

createBufferPacker

public BufferPacker createBufferPacker(int bufferSize)
Description copied from class: MessagePack
Returns serializer that enables serializing objects into buffer.

Overrides:
createBufferPacker in class MessagePack
Parameters:
bufferSize - initial size of buffer
Returns:
buffer-based serializer

createUnpacker

public Unpacker createUnpacker(InputStream stream)
Description copied from class: MessagePack
Returns deserializer that enables deserializing InputStream object.

Overrides:
createUnpacker in class MessagePack
Parameters:
stream - input stream
Returns:
stream-based deserializer

createBufferUnpacker

public BufferUnpacker createBufferUnpacker()
Description copied from class: MessagePack
Returns empty deserializer that enables deserializing buffer.

Overrides:
createBufferUnpacker in class MessagePack
Returns:
buffer-based deserializer

createBufferUnpacker

public BufferUnpacker createBufferUnpacker(byte[] b)
Description copied from class: MessagePack
Returns deserializer that enables deserializing buffer.

Overrides:
createBufferUnpacker in class MessagePack
Parameters:
b - input byte array
Returns:
buffer-based deserializer

createBufferUnpacker

public BufferUnpacker createBufferUnpacker(byte[] b,
                                           int off,
                                           int len)
Description copied from class: MessagePack
Returns deserializer that enables deserializing buffer.

Overrides:
createBufferUnpacker in class MessagePack
Returns:
buffer-based deserializer

createBufferUnpacker

public BufferUnpacker createBufferUnpacker(ByteBuffer bb)
Description copied from class: MessagePack
Returns deserializer that enables deserializing buffer.

Overrides:
createBufferUnpacker in class MessagePack
Parameters:
bb - input ByteBuffer object
Returns:
buffer-based deserializer


Copyright © 2011. All Rights Reserved.