|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.msgpack.MessagePack org.msgpack.util.json.JSON
public class JSON
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 |
---|
public JSON()
public JSON(MessagePack msgpack)
Method Detail |
---|
public Packer createPacker(OutputStream stream)
MessagePack
OutputStream
object.
createPacker
in class MessagePack
stream
- output stream
public BufferPacker createBufferPacker()
MessagePack
createBufferPacker
in class MessagePack
public BufferPacker createBufferPacker(int bufferSize)
MessagePack
createBufferPacker
in class MessagePack
bufferSize
- initial size of buffer
public Unpacker createUnpacker(InputStream stream)
MessagePack
InputStream
object.
createUnpacker
in class MessagePack
stream
- input stream
public BufferUnpacker createBufferUnpacker()
MessagePack
createBufferUnpacker
in class MessagePack
public BufferUnpacker createBufferUnpacker(byte[] b)
MessagePack
createBufferUnpacker
in class MessagePack
b
- input byte array
public BufferUnpacker createBufferUnpacker(byte[] b, int off, int len)
MessagePack
createBufferUnpacker
in class MessagePack
public BufferUnpacker createBufferUnpacker(ByteBuffer bb)
MessagePack
createBufferUnpacker
in class MessagePack
bb
- input ByteBuffer
object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |